# Tag Info

## New answers tagged machine-learning-model

0

Ensembling and stacking are made to improve the model's predictive capacity. But your need here is to enable the model to predict a new Class. This doesn't happen in machine Learning unless you use your domain knowledge and infer that from the individual prediction. e.g. If I train a model to predict white color and another to train Black color, it doesn't ...

1

I will say, it's an either Or situation You can pick one of "Incremental/Online" training Or "addition of new class". You may do a fine-tuning approach with a Neural network by adjusting the o/p layer and training the last few layers. But this approach expects the new data to be quite similar to the training set. KNN - Can do the online ...

0

Train another XGB model on second layer. Your first layer contains all the individual model and in the second layer you will train another model on top of all of them. XGB is good for this task.

1

I would call that a multi-headed convolutional model.

0

There are something like 30 random forest packages in R. "randomForest" is one of the first implementations and so is well known, but it's not great for large datasets. "ranger" is a good R package; it's fast, handles large data, and has parameter tuning searches. It's easier to use with package "parsnip". library(ranger) ...

0

It is difficult to answer your question without the access to your code. The best way to understand the difference is to profile the code and see where the bottlenecks are for your specific problem. For this, you can use different profiling modules in python: cProfile python line profiler

2

In your confusion matrix kernel , you passed two arguments. Y_pred and y_true. They are supposed to have same dimensionality. But they are different. That's why the error occured.

0

You can do a K Means Clustering to see cluster your products and see if some products is situated very closely. (In the same cluster). Then you can say that products in the same cluster are similar. But you have to find the optimal k value of clusters.

0

The fmla is the model formula: fmla <- formula(blood_pressure ~ age + weight) So the correct solution should be # bloodpressure is in the workspace summary(bloodpressure) # Create the formula and print it fmla <- formula(blood_pressure ~ age + weight) fmla # Fit the model: bloodpressure_model bloodpressure_model <- lm(fmla, data = bloodpressure) ...

7

This is an implementation detail, and I wouldn't necessarily rely on this behavior, but presently in sklearn, it will choose the "first" class. The predict method calls for the probability prediction, then takes the argmax, which in case of ties takes the first one: https://github.com/scikit-learn/scikit-learn/blob/fd237278e/sklearn/tree/_classes....

0

First, it would be beneficial if you could mention whether that $R2$ presented in the figure is for the test or training dataset. Let's assume that it is for the test dataset. The answer to all of your questions is subjective and depends on the type of data you used for this purpose. But let me briefly answer them. Because the Random Forest model (RF) is an ...

0

It should be a bug in their server. The fmla variable should have the same contents in your code and in theirs. This is because the last assignment on both scripts is fmla <- lm(blood_pressure ~ age + weight, data=bloodpressure)

0

You can do mainly two things: bootstrap or oversampling. With statistical data you can do bootstrapping (random sampling with replacement) Bagging methods help boosting you model accuracy. The pseudocode will be a bit like this. for estimator in range(number of estimators): Sampling some data Fitting a model Predicting mean(predictions) This way ...

0

For a good overview of common statistical methods, check our Rob Hyndman's Forecasting Principles and Practices. For a comparison of different models, including machine learning and deep learning, check out the M4 competition and their companion repo. The current state-of-the-art on the M4 data set is N-BEATS as far as I know. For a replication and ...

0

This error usually indicates your train and test in the train_test_split() function call are different sizes. You may need to reshape one to get them to match. Look at the shapes of train and test to see what is the problem.

0

If one understands the business problem you are trying to solve, then this shouldn't be that hard. You can present the results of your model. Understand your data first, is it skewed, balanced? Understand your model, check the feature importance. Do they make sense with the domain knowledge you have? For example, if your data is highly imbalanced and you ...

0

You may be able to convert the entire model pipeline to a standardized format. PMML is such a format, and there are tools (e.g. jpmml) to convert all your named modeling package objects to PMML, though perhaps you've used something else that isn't already easily-converted. Otherwise, just force installation of dependencies (and make it easy), through a ...

0

You can try to fuse the image and audio data. You can fuse in different ways: 1) Early fusion - fusion at feature level 2) Late fusion - fusion at output level (similar to your idea) Here is some papers for your reference: Look, Listen and Learn https://arxiv.org/pdf/1705.08168.pdf Learn to Combine Modalities in Multimodal Deep Learning https://arxiv....

0

If your dataset is small (less than 1000 observations) you can try some logic with regex and you will have a much quicker and working solutions in few hours.

Top 50 recent answers are included