Questions tagged [machine-learning]

Implementation questions about machine learning algorithms. General questions about machine learning should be posted to their specific communities.

0
votes
0answers
3 views

Analyzing NN performance in Matlab - how is the test set used in training different than the test set used to do generalization

Matlab's train command internally splits the dataset into train,val,test: [net tr] = train(data,...) where tr.trainInd,tr.valInd and tr.testInd are the indices for the respective subsets. In the plots ...
-1
votes
0answers
8 views

While reading the pages of a PDF file using Python, I get the following error. There are 300 pages in pdf file

Code: from tabula import read_pdf data = read_pdf("Cric_Data.pdf", pages='all') Error: CalledProcessError: Command '['java', '-Dfile.encoding=UTF8', '-jar', \tabula-1.0.2-jar-with-dependencies....
0
votes
0answers
6 views

Develop a supervised learning Bayesian Belief Network

I want to develop a supervised learning Bayesian Belief Network. I have used pybbn to develop a simple BBN for any network, which is working fine, now I want my model to learn from the data, like any ...
0
votes
0answers
8 views

Prepping to update a Core ML Model

Core ML 3 now gives us the ability to perform on-device training. After creating an updatable Core ML Model, we need to perform some function to update it on-device by using the MLUpdateTask function ...
-3
votes
0answers
14 views

Is it possible to build a regression model for predicting movie gross using sections on their wikipedia pages?

I got this as an assignment from a company recruiter and I've successfully scraped a dataset of about 650 movies with their 'Plot', 'Music' and 'Marketing' sections and gross. I've tried tfidf and ...
-2
votes
0answers
12 views

plot this type of data as it contain categorical value in Matplotlib or convert it to numeric

This data i have I have a data set that is of timeseries and i want to plot it using matplotlib but the problem is every row contain a alphabets so help me it to convert the whole data to numeric.
0
votes
0answers
10 views

Why Normality is considered as an important assumption for dependent and independent variables?

While going through one kernel on Kaggle regarding Regression in that it was mentioned that the data should look like a normal distribution. But I am not getting why? I know this question might be ...
0
votes
1answer
9 views

Particle swarm optimization pbest and gbest

can update particles velocity and position and then find the pbest and gbest? or pbest and gbest must be found first? what pbest and gbest in PSO?
0
votes
0answers
12 views

How to determine percent contribution to classification in logistic regression? [migrated]

I'm trying to understand the contribution of each feature towards a specific classification. Let's say I have clients as my data and their features are income, debt and age. We're trying to predict ...
-2
votes
1answer
22 views

Classification with machine learning and a small database

I want to create a valve detection and classification like this video : https://www.youtube.com/watch?v=VY92fqmSdfA to detect the positions Open and close and intermediate of the valve. I have done ...
0
votes
0answers
10 views

How to give datetime as input features in Ludwig Toolbox for Time series forecasting?

I'm Trying for uni variate time series forecasting with Ludwig toolbox.I need to give my date column of type datetime as input. But I am getting error when i try to pass datetime column as timeseries ...
0
votes
1answer
12 views

Adding custom labels to pytorch dataloader/dataset does not work for custom dataset

I am working on the cactus image competition on Kaggle and I am trying to use the PyTorch dataloader for my CNN. However, I am running into an issue where I cannot set the labels for the training set. ...
0
votes
1answer
12 views

Tensorflow TypeError: 'numpy.ndarray' object is not callable

while trying to predict the model i am getting this numpy.ndarray error .it might be the returning statement of the prepare function. what can be possibly done to get rid of this error . import ...
0
votes
0answers
10 views

How to deal with multiple values of a feature when creating a dataset in python (csv)?

I am creating datasets to predict a solution or the error cause from error codes and data like date, software version,... I wanted to create the dataset as csv file, where one column is for the date, ...
-1
votes
0answers
15 views

CNN implementation

I am trying to build the network to perform image classification for radar images of many samples, divided into 2 categories, plastic and metal objects. The processed images in Matlab are of size 28*...
1
vote
2answers
32 views

Can we replace anchor boxes in object detection with multiple bounding box predictors?

A lot of popular and state of the art object detection algorithms like YOLO and SSD use the concepts of anchor boxes. As far as I understand for networks like YOLO v3, each output grid cell has ...
-2
votes
0answers
11 views

Is it possible to make a book recommendation system using google books api? [on hold]

I'm new to this machine learning field and I wanted to build a book recommendation system. I have build this using a .CSV static file, but i want to know how can I start building it using the Google ...
-2
votes
0answers
13 views

What will be structure of train_data for triplet loss while training a model for problem like street2shop?

I want to train model for street2shop or any problem that uses triplet loss. So for training i have list of triplets each triplets contains set of 3 arrays(numpy array of images) but when I pass fit ...
-1
votes
0answers
11 views

How to calculate Parameters in RNN? (Deep learning practice problem)

I've just started deep learning class and was given a simple RNN problem that models a time sequence using RNN. I need to calculate the total parameters to RNN. The RNN models 3 steps of the sequence ...
0
votes
0answers
20 views

Sklearn: Is MinMaxScaler the right tool?

I use Prophet to predict ticket sales for live events (concerts). Until now I was working with only one event. To improve predictions I want to chain data from several concerts that are all relevant ...
1
vote
1answer
33 views

Why is my custom loss function not accepting converted numpy arrays?

I am trying to write a custom loss function that will operate on the NN output after forward pass but before back prop by calling an external function (not written with the keras/tensorflow backend ...
-3
votes
1answer
27 views

Which machine learning algorithim should i implement for detecting document type? [on hold]

We have requirement that we get different type of documents from client like student admission document, marksheet etc. So we want to create an algorithm which identify which document it is. So for ...
-1
votes
1answer
21 views

Recommendations for text classification models to work with almost 200K labels

So basically I want to classify a lot of labels (200K+). Are there any recommended models I should try in order to have a relatively good accuracy and not take days to complete? I have tried to use ...
-1
votes
0answers
13 views

Need aid with code specifics in R for K clustering function

I am relatively new to coding, and completely new to R and would love some help. I am trying to make my graph have some additional information but im not really sure what code to add to get the result ...
-1
votes
0answers
28 views

Why do U-net trains successfuly and Fast-SCNN not training at all on same data?

I'm new to neural networks and I'm working on image segmentation problem (both single and multiclass) and have good results with classic U-net model and modified with bottleneck blocks from ...
0
votes
1answer
5 views

Why does xLearn fit function causes kernel crashes in Jupyter?

I'm trying to make CTR (Click through rate) prediction using a python module named 'xlearn'. It enables me to implement a FFM (field-aware factorisation machine) quite easily. However, I have a ...
-2
votes
1answer
32 views

Return today's date and specific time in string if date not specified in Given string [on hold]

I have developed nlp model in which we book hotel rooms from users response. i.e. Customer send email we analyse that mail and assign room to customer on the mail content. e.g. I want to reserve ...
1
vote
0answers
12 views

how to restore complex objects from checkpoint in tensor flow for prediction on new data by restore checkpoints

I am working on a Tensorflow Model. Here I have created a custom class where the model is being built. Below is the code for training. sess = tf.Session(config=session_conf) with sess....
0
votes
1answer
13 views

TF IDF weighed frequency scores in Test data, model trained using SVC

I am training a predictive model on text descriptions and a label corresponding to them. I am Using SVC to train the corpus of data with the tf idf weighted word frequencies. I want to understand if ...
0
votes
1answer
9 views

How can I use a Pretrained TF model in Azure ML Studio

I have a tensorflow based image classification model which I want to import in ML studio and deploy through it. I am unable to find a way to import a frozen model. Can someone help.
1
vote
0answers
20 views

How to fix this Keras ValueErrors for Image classification?

I'm trying to perform a binary image classification using keras library but i'm getting a ValueError as Error when checking target: expected dense_1 to have 4 dimensions, but got array with shape (32, ...
-1
votes
0answers
9 views

Is there an approach that help me to rephrase some sentences?

Is there an approach in NLP that can rephrase sentences to one sentence ? I have very short sentences in two sides, one side is actually like labels.. I want to map similar sentences in one side to ...
-3
votes
0answers
19 views

How do I make a Recommendation System using H2O? [on hold]

I am trying to compare the performance of Recommendation System algorithms in sklearn and H2O. I am unable to find an existing implementation of the recommendation system algorithm in H2O. Any ...
0
votes
1answer
30 views

ValueError: could not convert string to float - machine leaning

I'm working on a machine learning project to identify if a PCAP is an attack or not and I have to process the PCAP files and create a model and then predict. a part of my code is like this: train['...
-2
votes
1answer
23 views

The dilemma of overfitting in NN training

My question is in continuation to the one asked by another user: What's is the difference between train, validation and test set, in neural networks? Once learning is over by terminating when the ...
-4
votes
0answers
54 views

Which machine learning algorithm will be perfect for controlling motor speed? [on hold]

To control ebike brake i have collected voltage difference with time and milliseconds using arduino mega board. I want to apply machine learning for harsh breaking. Which machine learning algorithm ...
-2
votes
0answers
28 views

How to reply user according to different result?

i am working on a chat-bot for answering questions related me, like what are my 10th,diploma,BE scores? Hobbies? Work Experience? and other things. i am working on dialog-flow. So what i am trying to ...
0
votes
1answer
20 views

Can I use reinforcement learning in tensorflowjs?

I'm doing a project at the moment which would require tensorflowjs to create a neural network that learns from reinforcement learning algorithms. Is this possible to do?
1
vote
1answer
13 views

How to manually register a sci-kit model with TRAINS python auto-magical experiment manager?

I'm working mostly with scikit-learn, as far as I understand, the TRAINS auto-magic doesn't catch scikit-learn model store/load automatically. How do I manually register the model after I have '...
1
vote
1answer
18 views

Mismatch in expected Keras shapes after pooling

I'm building a few simple models in Keras to improve my knowledge of deep learning, and encountering some issues I don't quite understand how to debug. I want to use a 1D CNN to perform regression on ...
-2
votes
0answers
13 views

Anomaly detection framework for investment portfolios

I currently have a basket of 200 investment portfolios which are partitioned into 3 styles: Long, Intermediate, and Short. Each portfolio has 10 interesting features X which define its style. I want ...
-5
votes
0answers
15 views

What is the image preprocessing function for caffe2 squeezenet model for imageNet validation dataset?

I need the pre-processing function on which the caffe2 squeezenet model is validated. I took the caffe2 model from https://github.com/caffe2/models/tree/master/squeezenet i tried this but not ...
-2
votes
0answers
6 views

Conceptual Overview of SHAP Algorithm in Interpreting Black-Box Machine Learning Models

SHAP is an excellent resource in giving tools to interpret black-box/tree-based machine learning models. Lundberg et al. 2019 (https://arxiv.org/pdf/1802.03888.pdf) developed an efficient SHAP ...
-2
votes
1answer
27 views

Trying to find how similar one column is to another in dataframe

I am trying to calculate accuracy rate. I have a pandas dataframe with numerous columns of data. I have one column of predicted churns and one column of true churns for every customer. Is there a ...
-3
votes
1answer
14 views

What is the definition of “exhaustive annotation”

I have seen this term in a few deep learning papers and was wondering what it meant. One example can be found in this blog post.
0
votes
0answers
19 views

Can a Keras model take inputs in different form? (i.e one input as continuous value and another input as a list of categorical values)

I'm trying to build a regression model in Keras (currently I just tried a simple neural network model) and I stumbled upon an error: ValueError: setting an array element with a sequence. To start ...
0
votes
0answers
14 views

Vowpal-Wabbit is requesting label for every unlabeled point in active learning mode

I am performing binary classification using vowpal-wabbit in active learning mode. The problem that I am facing is that, vw is requesting for labels of every unlabeled point, instead of requesting ...
-1
votes
1answer
22 views

Machine learning model with relative feature importance

I have ~12 features and not much data. I would like to train a machine learning model but instruct it that I have some information in which some features are more important than others. Is there a way ...
-3
votes
0answers
23 views

Build a meaninngful article from an unstructured data corpus in python [on hold]

I'm very new to NLP and Machine Learning (still learning the ropes). I had a practical problem in mind. I have an information security article to build once every 3 days. We usually, gather the data ...
0
votes
0answers
15 views

Setting an array element with a sequence while training nn in keras

I'm getting the error "Setting an array element with sequence" error while training my neural net in keras. My input xtrain[0] is (1,300) and is of a list. It's a vector of sentence formed using w2v....