I am having trouble loading Microsoft.ML
assuming I need some kind of #load statement but there is no information
I am using default c# environment.
(57,17): error CS0234: The type or namespace name 'ML' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
#load "../Initialize.csx"
#load "../QuantConnect.csx"
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Globalization;
using System.Drawing;
using QuantConnect;
using QuantConnect.Algorithm.Framework;
using QuantConnect.Algorithm.Framework.Selection;
using QuantConnect.Algorithm.Framework.Alphas;
using QuantConnect.Algorithm.Framework.Portfolio;
using QuantConnect.Algorithm.Framework.Execution;
using QuantConnect.Algorithm.Framework.Risk;
using QuantConnect.Parameters;
using QuantConnect.Benchmarks;
using QuantConnect.Brokerages;
using QuantConnect.Util;
using QuantConnect.Interfaces;
using QuantConnect.Algorithm;
using QuantConnect.Indicators;
using QuantConnect.Data;
using QuantConnect.Data.Consolidators;
using QuantConnect.Data.Custom;
using QuantConnect.DataSource;
using QuantConnect.Data.Fundamental;
using QuantConnect.Data.Market;
using QuantConnect.Data.UniverseSelection;
using QuantConnect.Notifications;
using QuantConnect.Orders;
using QuantConnect.Orders.Fees;
using QuantConnect.Orders.Fills;
using QuantConnect.Orders.Slippage;
using QuantConnect.Scheduling;
using QuantConnect.Securities;
using QuantConnect.Securities.Equity;
using QuantConnect.Securities.Future;
using QuantConnect.Securities.Option;
using QuantConnect.Securities.Forex;
using QuantConnect.Securities.Crypto;
using QuantConnect.Securities.Interfaces;
using QuantConnect.Storage;
using QuantConnect.Research;
using QuantConnect.Statistics;
using QuantConnect.Data.Custom.AlphaStreams;
using QCAlgorithmFramework = QuantConnect.Algorithm.QCAlgorithm;
using QCAlgorithmFrameworkBridge = QuantConnect.Algorithm.QCAlgorithm;
//Unavailable Libraries
// using MathNet.Filtering;
// using MathNet.Filtering.Kalman;
// using MathNet.Spatial;
// using Microsoft.Data.Analysis;
using Microsoft.ML;
// using Microsoft.ML.CpuMath;
// using Microsoft.ML.DataView;
// using Microsoft.ML.Ensemble;
// using Microsoft.ML.FastTree;
// using Microsoft.ML.LightGbm;
// using Microsoft.ML.Mkl.Components;
// using Microsoft.ML.OnnxRuntime;
// using Microsoft.ML.TensorFlow;
// using Microsoft.ML.TimeSeries;
Mia Alissi
It seems like you're trying to use the
Microsoft.ML
library in your C# project. To do this, you need to add the library to your project. Here are the steps to do this:lean library add "<projectName>" "<packageName>"
to add the NuGet package to the project. In your case, the packageName would beMicrosoft.ML
.Here's an example of how to do this:
This command installs the latest version of the
Microsoft.ML
package. If you want to use a different version you can use the--version <value>
option. Additionally, you can pass the--no-local
flag to skip restoring the packages locally.After you've added the library, you should be able to use it in your project by adding
using Microsoft.ML;
at the top of your file.Please refer to the QuantConnect Documentation for more details.
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
AgedVagabond
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!