Questions tagged [machine-learning-model]

The tag has no usage guidance.

0
votes
1answer
17 views

How to predict number of orders for coming weeks using previous week's data?

I'm getting confused as how to proceed for this problem: I need to predict a city's food supply, for number of orders, for the upcoming weeks based on previous weeks' data. What should I do? Do I ...
0
votes
0answers
10 views

Speed of SVM.. Poly kernel method runs endlessly and never completes execution

I'm using scikitlearn in Python to create some models while trying different kernels. I was surprised to see that rbf was fit in under a second, whereas linear took a minute and poly took hours. Can ...
0
votes
4answers
27 views

Keras model giving error when fields of unseen test data and train data are not same

I have created a simple Keras deep learning model in python. Total no of variables in training are 195 while in unseen test data are 181.All input fields are categorical(converted by one hot encoding)....
0
votes
0answers
10 views

How to scale out a python based model in the cloud?

This is a question about architecture choice, tools and scalability. Let's say I have a modeling problem that runs in python and uses some libraries moduleX, moduleY, and moduleZ. We could further ...
0
votes
0answers
9 views

Converting our model to other formats

I am using NVIDIA platform for running some medical imaging workflows. I came to know that NVIDIA accepts model only in the below formats a) graph def b) saved model c) trt plans d) caffe netdefs ...
0
votes
0answers
16 views

Which models should I choose in this project? [closed]

I have a project using python which requires to predict their customer retention. The independent variables include order_date, category_name(category of the product the store sold), product_name, ...
1
vote
0answers
10 views

Prediction that a Employee can take a leave or not based on his previous track record

which prediction algorithm should I use to find the probability that an employee takes leave and come back on the specified period(i.e.does does not extend his leave). Thank You.
0
votes
0answers
12 views

Machine Learning Algorithm for 'Performance Rating' to Employees

Which Machine Learning Algorithm should i use for Assigning 'Performance Rating' to each Employee based on his LeaveDaysCount and LeaveExtensionPeriod(If Extended).
0
votes
1answer
28 views

Why n-split is not possible for a dataframe with KFold?

On running below code on python 3.7, I am getting the following response: 'DataFrame' object has no attribute 'n_splits'. How to get rid of this? ...
1
vote
0answers
20 views

What approach should I take to model forecasting problem in machine learning?

I have a dataset which contains 4000k rows and 6 columns. The goal is to predict travel time demand of a taxi. I have read many articles regarding how to approach the problem. So, every writer tell ...
1
vote
1answer
21 views

What machine learning algorithm to use and how to

I have been struggling with this problem for a while now and I finally decided to post a question here to get some help. The problem i'm trying to solve is about predictive maintenance. Specifically, ...
0
votes
1answer
20 views

Regarding Training loss and validation loss

I am trying to use keras for multi label news classification. I am a beginner in machine learning so please bear with me. Here is my training loss vs validation loss diagram: I understand that ...
0
votes
2answers
49 views

What happens when scikit-learn does a Lasso Model?

I have started an MLS course. As a beginner and non-mathematician it has been hard. I am trying to understand the exercise about Lasso Models. I have done Lasso models on R-cran, but this is my first ...
0
votes
1answer
13 views

Machine learning model using keywords for binary decision

I have a some experience from Uni with convolutional NN and edge detection, but haven't much explored the other types of machine learning models. I was wondering if there might be one that is suited ...
1
vote
0answers
40 views

Machine learning model for determining whether a transaction is cheap, fair, or expensive,

I am currently working on a final project related to data science and would like some advice. I have a second hand bike selling data set that consists of around 100,000 observations with the ...
0
votes
1answer
21 views

In Incremental Learning will the model be updated automatically?

I came across Incremental Learning algorithms paper, where incremental algorithms are compared. I have problem with general understanding. Will the model be updated /adapts itself automatically when ...
0
votes
1answer
16 views

Reordering feature and its impact

How does reordering the features impact model training and its performance? Per my understanding, it should not impact the model performance as weights get tuned according to feature value and not ...
0
votes
0answers
22 views

Keras load model and predict always shows same class

I am trying to use my trained model (binary image classification) which has pretty good accuracy on both train and test sets both larger than 90%. However when I trying to predict classes with the ...
0
votes
0answers
10 views

Caffe2: Read predict_net.pb and init_net.pb and display informaion

I want to display the network read from the .pb files using:print(model.net.Proto()) I have read the pb files : ...
3
votes
0answers
30 views

Dynamic pricing models in freight transportation (logistics) business

I'm not sure this could be an appropriate question for here. I'm a newbie in the field of data science. I'm looking for keywords which can guide me to search the results to implement what I want to ...
0
votes
0answers
23 views

Transfer learning, saving final FC layer only

I've written some code for transfer learning classifier using pytorch/ResNet. I replaced the final FC layer with an FC layer with the correct number of output classes. I froze all layers except for ...
2
votes
1answer
25 views

Creating a Object Detection model from scratch using Keras

I have a dataset containing 330 images which contain guns. Along with the images, I have a text file associated with each image file which contains, The number of objects ( guns ) in the image. ...
2
votes
1answer
36 views

What's a classifier capable of predicting a variable number of classes

I want to solve what I understand as a classification problem regarding tagging. Let's say an Entity can have 0 or more tags and I want to be able to predict which tags (if any) an entity might get I ...
0
votes
1answer
37 views

Why does the same algorithm give very different metrics on similar datasets?

I used Random Forest and hypertuned the parameters for a binary classification problem on a dataset (dataset A). I got a F1 score of 0.78. I then used a second dataset (dataset B). It was very similar ...
0
votes
1answer
33 views

How to find optimal number of trees in random forest using Grid search in R?

From below code, I am getting optimal number of mtry. What is this mtry ? and How should I find the optimal number of tree that to be assigned to Random forest algorithm so that it will give High ...
0
votes
0answers
9 views

What research exists to help design training data sets where contamination due to privacy is an issue?

Suppose one is building a classifier that: takes as input the e-mail body text returns true or false if person X should be included in the address list To build this classifier we have historical ...
0
votes
0answers
18 views

How best to find patterns in data that exhibit one-to-many and many-to-one relations?

I have a lot of log data related to alerts on a computer platform. Each log entry represents an alert, but several of the same alert can be fired for a single event over a span of time (either because ...
1
vote
1answer
48 views

How to Use Shap Kernal Explainer with Pipeline models?

I have a pandas DataFrame X. I would like to find the prediction explanation of a a particular model. My model is given below: ...
1
vote
0answers
26 views

Custom keras metric error

I'm trying to create a new metric for my model and this is my function ...
0
votes
1answer
27 views

For binary classification, which is best Random Forest or Neural networks?

I had to perform a binary classification, and from the beginning I started thinking about using the Random Forest classifier. But now I'm thinking, if using a neural network would've not been better. ...
0
votes
1answer
26 views

R - newdata has X rows but variables have X rows

I have a dataset dimensions 1142obs in 454 variables. I've used 'caret' to separate into training and testing datasets. training =858 obs of 99 var testing =284obs of 99 var I make a linear ...
0
votes
0answers
8 views

Manual setting of target variable based on features' minimum values: f1 score = 1

I am building a classifier for user engagement in my website. Basically, since there are no "proxy" for engagement, i.e. there is no pre-defined target variable, I came up with minimum thresholds ...
1
vote
0answers
12 views

Python Text Classification : How to add a labeled specific wordlist to influence the model?

I've been working on Python Text Classification the past 3 weeks, and i already have a pretty good model but i would like to enhance it. A way to do it would be to add a wordlist that could tilt the ...
1
vote
1answer
22 views

Logistic Regression Cost Plot Train, Cost Validation & Test

I run logistic regression using kaggle data (pima-indians-diabetes). And I also run a diagnostics to know if my model trained parameters are underfit (high bias) or overfit (high variance) and below ...
1
vote
1answer
26 views

ML model deployment architecture?

I came from a software development background and we have separate servers of the same database (dev, test, prod). The reason for this is because we develop our apps against the dev DB, run tests ...
0
votes
1answer
33 views

How to combine different kernels for Gaussian process in GPyTorch?

I am trying to learn gaussian process by using GPyTorch to fit a Gaussian Process Regression model. However, I can't figure out ...
1
vote
2answers
54 views

difference betwen predicting seen and unseen data

I tried to test my model with seen and unseen data (seen data are data that i used to learn the model). I figure out that as much as i increase the number of features seen data can be properly ...
0
votes
0answers
25 views

Keras functional API multi-input size error

I'm trying to define a multi-input model on a list of different arrays, all with the same shape (n_points, size, size, 1). I defined this model using the ...
1
vote
0answers
18 views

What is divergence exactly in machine learning?

I know about KL divergence, JS Divergence and clearly know that it is different from the divergence in calculus. I have an intutive feeling of divergence as it roughly compares the closeness of two ...
0
votes
0answers
8 views

Experiment click to lead prediction with Azure ML

I am experimenting now with the Azure ML Studio and I am trying to predict leads based on the clicks I have. I am exporting a data set of 60.000 Clicks and 8.000 Leads from these clicks. My data ...
2
votes
1answer
46 views

Best way to classify plots which are overlapping?

I have an experiment in which it was done under two conditions. For each condition, the experiment was performed 26 times. The output of the experiment is a plot with 70 time indices. I would like to ...
1
vote
1answer
25 views

How to import trained keras models

I have some trained models that I could import and compare, but then the same code gave: ...
1
vote
0answers
27 views

Help with approaching this problem correctly

newbie here trying to figure this out: I have a dataset which looks like: ...
0
votes
0answers
8 views

How do ML models in fitness trackers determine REM sleep state?

With many fitness trackers and smartwatches you can track your sleep quality, and many other things such as heart rate. My smartwatch gives me a detailed analysis and visualisation of any night's ...
0
votes
2answers
51 views

Dealing with the test set of imbalanced data

I am working on a problem dealing with unbalanced data that has a very specific request. I would like to know the following: When I have an imbalanced dataset and I do train test split, the test ...
3
votes
1answer
77 views

Model comparison with CV using standard error

Discovering the ML world with sklearn, I'm testing a large panel of models onto my dataset. This is for learning purpose but also for work so I want the final model ...
1
vote
0answers
35 views

Deciding on the number of components in PCA

I have been running my model several times now. Each time i get different results based on what number i put in my PCA component number range (I used raw numbers in the code instead of the range ...
0
votes
1answer
24 views

Anomaly Detection System

I need a sanity check. I want to create an anomaly detection system. The logic which I am planning to use is the following: Find anomalies in the past using Seasonal Hybrid Extreme Studentized ...
0
votes
2answers
36 views

How to encode a job description for machine learning

I'm working on a sample project and one of the features is the job description of a person (categorical, for example: blue-collar, retired, unknown, unemployed, student, etc.). Since in the future ...
0
votes
1answer
29 views

Random Forest Techniques/Models

Can anyone tell about different Techniques/algorithms of Random forest? I know, Random Forest is itself an algorithm/model, but I'm looking for another version of it as we have in decision trees. List ...