Skip to content

Unhandled Exception when using OrdinaryLeastSquaresRegressor #329

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
helloguo opened this issue Jun 7, 2018 · 2 comments
Closed

Unhandled Exception when using OrdinaryLeastSquaresRegressor #329

helloguo opened this issue Jun 7, 2018 · 2 comments

Comments

@helloguo
Copy link

helloguo commented Jun 7, 2018

System information

  • OS version/distro Windows 10:
  • .NET Version 2.1.300-rc1-008673:

Issue

=============== Training model ===============
Automatically adding a MinMax normalization transform, use 'norm=Warn' or 'norm=No' to turn this behavior off.
  Bad value at line 1 in column PassengerCount
  Bad value at line 1 in column TripDistance
Processed 100001 rows with 2 bad values and 0 format errors
  Bad value at line 1 in column PassengerCount
  Bad value at line 1 in column TripDistance
  Bad value at line 1 in column FareAmount
Processed 100001 rows with 3 bad values and 0 format errors
Trainer solving for 19 parameters across 100000 examples

Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NotSupportedException: The MKL library (Microsoft.ML.MklImports.dll) or one of its dependencies is missing.
   at Microsoft.ML.Runtime.Learners.OlsLinearRegressionTrainer.TrainCore(IChannel ch, Factory cursorFactory, Int32 featureCount)
   at Microsoft.ML.Runtime.Learners.OlsLinearRegressionTrainer.Train(RoleMappedData examples)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at Microsoft.ML.Runtime.Data.TrainUtils.TrainCore(IHostEnvironment env, IChannel ch, RoleMappedData data, ITrainer trainer, String name, RoleMappedData validData, ICalibratorTrainer calibrator, Int32 maxCalibrationExamples, Nullable`1 cacheData, IPredictor inpPredictor)
   at Microsoft.ML.Runtime.EntryPoints.LearnerEntryPointsUtils.Train[TArg,TOut](IHost host, TArg input, Func`1 createTrainer, Func`1 getLabel, Func`1 getWeight, Func`1 getGroup, Func`1 getName, Func`1 getCustom, ICalibratorTrainerFactory calibrator, Int32 maxCalibrationExamples)
   at Microsoft.ML.Runtime.Learners.OlsLinearRegressionTrainer.TrainRegression(IHostEnvironment env, Arguments input)

  • What did you expect?
    I was wondering how to use OrdinaryLeastSquaresRegressor?

Source code / logs

Please paste or attach the code or logs or traces that would be helpful to diagnose the issue you are reporting.

@shauheen
Copy link
Contributor

shauheen commented Jun 7, 2018

Thank you @helloguo for filing this issue. I think the issue has been previously reported (#234 and #241). @Ivanidzo4ka is working on a temporary fix in #286 . Please let me know if this can be closed.

@helloguo
Copy link
Author

helloguo commented Jun 7, 2018

Closing it because of duplicating other issues.

@helloguo helloguo closed this as completed Jun 7, 2018
@ghost ghost locked as resolved and limited conversation to collaborators Mar 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants