You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varenv=newTlcEnvironment();// Class name subject to change.varhost=env.Register("some user name");varpipeline=...// create pipeline using 'host'.pipeline.Fit(data);
If you call host.StopExecution(), the training process will terminate with an exception.
I am not sure why we discarded the standard CancellationToken API. It was definitely considered at that time, but I forgot what was the reason not to use it.
@Zruty0 are the IHostEnvironment could be used in the 0.4.0, or I should use nightlies for accessing this functionality? I'm aware about API change, just do not research on new API yet.
Activity
Zruty0 commentedon Sep 6, 2018
With the new API we are going to expose
IHostEnvironmentto you (see https://github.com/dotnet/machinelearning/blob/master/src/Microsoft.ML.Core/Data/IHostEnvironment.cs).Here's how you can cancel a process using that:
If you call
host.StopExecution(), the training process will terminate with an exception.I am not sure why we discarded the standard
CancellationTokenAPI. It was definitely considered at that time, but I forgot what was the reason not to use it.kant2002 commentedon Sep 9, 2018
@Zruty0 are the IHostEnvironment could be used in the 0.4.0, or I should use nightlies for accessing this functionality? I'm aware about API change, just do not research on new API yet.
klausmh commentedon Dec 4, 2018
Could you provide an example of "var pipeline = ... // create pipeline using 'host'." in the current version of ML.NET?
codemzs commentedon Jun 30, 2019
Done as part of #2797
kant2002 commentedon Jun 30, 2019
Thanks!