ML.NET Model Builder training fails due to missing Microsoft.CodeAnalysis.CSharp assembly

未关闭
#3,095 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
38/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
csharp

调研方向

The payload names no source file, only the failing assembly Microsoft.CodeAnalysis.CSharp 4.9.0.0 raised during AutoML pipeline generation for a net10.0 target. Start by finding where the project pins or references that package and how the Model Builder training path loads it, then try to reproduce with the steps in the report. Done means training a multiclass model on net10.0 completes without the assembly load error, with a note on which package version or binding redirect fixed it.

由索引模型根据 Issue 内容生成。

描述

Tutorial Bug Report
Description: When attempting to train a multiclass classification model using ML.NET Model Builder, the training process fails immediately after AutoML initialization.
The dataset is loaded successfully and the training configuration is validated. However, the AutoML engine crashes during pipeline generation with an assembly loading exception.
Error Message: Could not load file or assembly 'Microsoft.CodeAnalysis.CSharp, Version=4.9.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.
Environment:

  • Target Framework: net10.0
  • ML.NET Model Builder
  • Scenario: Multiclass Classification
  • Training Mode: Local Training
    Steps to Reproduce:
  1. Create a .NET console application targeting net10.0.
  2. Launch ML.NET Model Builder.
  3. Configure a multiclass classification model.
  4. Select training dataset.
  5. Click Train.
    Actual Result: Training fails during AutoML pipeline initialization and no model is generated.
    Expected Result: AutoML should generate candidate pipelines and complete model training successfully.
Image
主要语言
Dockerfile
星标
287
派生
66
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

dotnet/machinelearning-modelbuilder 的其他 Issue

查看 dotnet/machinelearning-modelbuilder 的全部 Issue

相似的 Issue

更多 Machine Learning Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。