Machinelearning: Error When Building Anomaly Detection Example Using 0.7.0

Created on 9 Nov 2018  路  2Comments  路  Source: dotnet/machinelearning

Hello, I'm a .NET developer but new to the .NET core world. I was able to verify this on two different machines. I didn't see any existing issues open on this. Hopefully I'm not missing something obvious here, and apologies if I am. Let me know if there's any further information I can provide or questions I can answer

System information

  • OS version/distro:
    Windows 10.0.16299
  • .NET Version (eg., dotnet --info):
    Version: 2.1.5
    Commit: 290303f510

Issue

  • What did you do?
    Pulled latest version of ML.NET to play around with the new anomaly detection algorithms. Added using statements from the example linked to from the release notes. An example of some step by step command line instructions are below (and the file contents are in source code section):

dotnet new console
dotnet add package Microsoft.ML --version 0.7.0

  • What happened?
    Failed to build, received a missing type or name space error CS0234: The type or namespace name 'TimeSeriesProcessing' does not exist in the namespace 'Microsoft.ML.Runtime' (are you missing an assembly reference?)
    Looking through the object browser in VS I don't see any TimeSeriesProcessing namespace present in the 0.7.0 nuget package at all.

  • What did you expect?
    Successful build, finding the indicated namespace.

Source code / logs

using System;
using System.Collections.Generic; 
using Microsoft.ML.Runtime.Api; 
using Microsoft.ML.Runtime.Data; 
using Microsoft.ML.Runtime.TimeSeriesProcessing;

namespace console_dotnetcore
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
        }
    }
}

Most helpful comment

Time series operations are in Microsoft.ML.TimeSeries NuGet.

All 2 comments

Time series operations are in Microsoft.ML.TimeSeries NuGet.

Awesome, that did it. Thanks for the clarification!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JakeRadMSFT picture JakeRadMSFT  路  3Comments

bs6523 picture bs6523  路  4Comments

rogancarr picture rogancarr  路  3Comments

aslotte picture aslotte  路  3Comments

ddobric picture ddobric  路  4Comments