- Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Description
System information
- OS version/distro Windows 10:
- .NET Version 2.1.300-rc1-008673:
Issue
- What did you do?
src:
using Microsoft.ML; using Microsoft.ML.Data; using Microsoft.ML.Models; using Microsoft.ML.Trainers; using Microsoft.ML.Transforms; using System; using System.Diagnostics; using System.Threading.Tasks; namespace mlnettest { class Program { static void Main(string[] args) { test1(); test2(); } static void test1() { var pipeline = new LearningPipeline(); pipeline.Add(new BinaryLogisticRegressor()); } static void test2() { var pipeline = new LearningPipeline(); pipeline.Add(new LogisticRegressor()); } } } csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>netcoreapp2.1</TargetFramework> </PropertyGroup> <ItemGroup> <PackageReference Include="Microsoft.ML" Version="0.2.0" /> </ItemGroup> </Project> - What happened?
error msg when I rundotnet run:
Program.cs(23,30): error CS0246: The type or namespace name 'BinaryLogisticRegressor' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\guo\Desktop\mlnettest\mlnettest.csproj] Program.cs(29,30): error CS0246: The type or namespace name 'LogisticRegressor' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\guo\Desktop\mlnettest\mlnettest.csproj] - What did you expect?
If I use v0.1.0<PackageReference Include="Microsoft.ML" Version="0.1.0" />, the code can run without any issue. I was wondering why v0.2.0 does not support these two learners?
Source code / logs
Please paste or attach the code or logs or traces that would be helpful to diagnose the issue you are reporting.
Metadata
Metadata
Assignees
Labels
No labels