New answers tagged

0 votes

Test set won't have all the features present in the training set

Running a customer's job may require time consuming equipment setup, and time is money. Predict the dollars for setup. Your existing production data captures number of seconds to set up each of {...
J_H's user avatar
  • 363
1 vote

Question regarding coefficents regarding linear modeling in R

thus my new formula is just XZ + YZ ? No, the * operator in R expands into all lower-order terms. terms(~(X * Z) + (Y * Z)) ...
Terrence's user avatar
  • 111
0 votes

Frameworks vs models

Let's take a look at definitions first. According to Wikipedia: In computer programming, a software framework is an abstraction in which software, providing generic functionality, can be selectively ...
Tomasz Witkowski's user avatar
0 votes

Does it make sense to train data in scikit-learn and copy+paste parameters into Rust's linfa?

Or, to make things easier and robust, you can export the trained scikit-learn model in a cross-platform format, and import it in Rust. 2 suggested format by scikit-learn are ONNX and PMML. Chances are ...
lpounng's user avatar
  • 1,000
1 vote

Does it make sense to train data in scikit-learn and copy+paste parameters into Rust's linfa?

In theory, if you were to pass the same data through a logistic regression or a SVM implemented in different packages, you should get the same results. And the same should apply when tuning a model in ...
Adam Jaamour's user avatar
0 votes

Is there a way to make keras custom test_step aware of the call being made from model.fit and model.evaluate

There is a nice keras.backend.in_train_phase() function for that. It is not documented (intentionally) but its signature is: ...
bio's user avatar
  • 111
0 votes

changing to gray scale

Converting an image from RGB to grayscale means combining the data from the three channels into a single channel. You are currently trying to do the conversion by simply reshaping the array, for this ...
Oxbowerce's user avatar
  • 7,157
0 votes

changing to gray scale

The error you're seeing is because the sizes of the thing you're trying to reshape don't match the sizes you're trying to reshape into. I'm guessing that your input has 3 channels here? Instead of <...
brewmaster321's user avatar

Top 50 recent answers are included