Questions tagged [machine-learning]
Implementation questions about machine learning algorithms. General questions about machine learning (concepts, theory, methodology, terminology, etc.) should be posted to their specific communities.
50,847
questions
0
votes
0
answers
11
views
Building a loop for dividing a continous to categorical data
I have a dataframe with measurements of number days from a blood test to disease diagnosis, from 0 to 5000. I use a decision tree model to show that the blood test changes according to the timepoint ...
0
votes
0
answers
25
views
Tensorflow: An error of incompatible between output of Dense layer and the shape of the label: logits and labels must have the same first dimension
I have a question about the output shape of Dense layer.
In my case, the ground truth of labels is a 155 long list. The data part is converted from image.
The dataset was assembled:
dataset = tf.data....
0
votes
0
answers
11
views
Need help in Kmodes_clustering in R
I'm kind of new to kmodes clustering concept.I have approx. 50 observations in the same format as mentioned below. First individual is having two different rg_code and same goes for third individual ...
0
votes
0
answers
10
views
M creating a virtual store in flutter dart.. but I am confused where to start and how can I achive this. Is there any help available on the web?
I want to create a 2d or 3d virtual try room in flutter. Application should support dynamic consumers and facilitate them through the virtual try room using device cameras. I don't know either flutter ...
0
votes
0
answers
12
views
unable to create ml Model with custom audio data
Tensor("args_0:0", shape=(), dtype=string); No such file or directory
[[{{node ReadFile}}]]
[[IteratorGetNext]] [Op:__inference_train_function_16376]
Following this tutorial
https:...
0
votes
1
answer
11
views
extract rectangular area from noisy image
extract rectangular area from noisy image
I want to get the clean figure (right) from the noisy figure (left):
To do this, I have a dataset with the noisy figure and its corresponding clean figures. ...
1
vote
0
answers
14
views
How do I fix: AxisError: axis 1 is out of bounds for array of dimension 1
I am currently working on a twitter sentiment analysis project using BERT and HuggingFace transformer library. When it comes to training the model, I am facing this error:
AxisError: axis 1 is out of ...
-1
votes
0
answers
15
views
do we need to check knn.score(X_train,y_train)?
I'm currently learning supervised learning with scikit learn on datacamp and I got an exercise where I should create a knn model and test it with several number of neighbors to get the most accurate ...
0
votes
0
answers
18
views
MLflow proxied artifact access: Unable to locate credentials
I am using MLflow to track my experiments. I am using an S3 bucket as an artifact store. For acessing it, I want to use proxied artifact access, as described in the docs, however this does not work ...
0
votes
0
answers
12
views
NEAT function taking forever to execute
I'm trying to use the NEAT library but unfortunately one of the lines is taking forever to execute (I waited 2 hrs and it had not completed)
Here is the code:
config = neat.config.Config(neat....
-1
votes
0
answers
12
views
Microservice to perfom image evalution of cars
I would need to implement (with libraries) or to use an already implemented service by which I provide in input a set of images belonging to one car/vehicle and some parameters (color, ecc.) and I get ...
0
votes
0
answers
11
views
multiple possibly overlapping subsets of a sentence detection brainstorming
Suppose you have a n-token sentence:
T₁, … Tₙ where Tᵢ = (word ∈ vocab, i)
Some meaning notion M may be mentioned 0...∞ times there.
Say, hotel room experience of a particular questionee.
You may have ...
-2
votes
0
answers
18
views
How can an R xgboost model library be run on iOS by Swift or Objective-C? [closed]
I need to run a 19MB xgboost model on iOS.
R on Windows built the xgboost binary executable, which I need to call from Swift (preferred) or ObjC.
The xgboost is a model for sleep stage classification.
0
votes
0
answers
14
views
How to perform image augmentation for sequence of images representing a sample
I want to know how to perform image augmentaion for sequence image data.
The shape of my input to the model looks as below.
(None,30,112,112,3)
Where 30 is the number of images present in one sample. ...
0
votes
1
answer
12
views
Which Model performance metric is used for SVR model by sklearn?
I noticed the math for SVR states that SVR uses L1 penalty or epsilon insensitive loss function. But sklearn SVR model documentation mentions L2 penalty. I don't have much experience with SVR thought ...
-1
votes
0
answers
12
views
Gradients do not exist for variables ['top_bn/gamma:0', 'top_bn/beta:0'] when minimizing the loss on Google Colab
Does anyone know how to fix this on Google Colab?
Gradients do not exist for variables ['top_bn/gamma:0', 'top_bn/beta:0'] when minimizing the loss. If you're using \model.compile()`, did you forget ...
-2
votes
0
answers
33
views
ML - How to avoid estimating prices that are more than 25 dollars off of the actual price in Machine Learning model?
I am currently working on a case study where I have to estimate how much a person makes by giving their property for rent. They provided me with a constraint which is as follows:
"avoid ...
0
votes
1
answer
16
views
How to use Statsmodel Holt winter to get in sample values from model?
I am using Statsmodel Holt Winter library, and am able to create a model successfully. Now I need to create a csv file which will have in one column actual values and in another predicted (along with ...
-1
votes
2
answers
32
views
Comparing the predicted class for each instance of test data from different models
My test set data contains about 50,000 instances. I trained different machine learning models. Now I want to do some comparison to see for example if for every instance x_i that model A predicted as 0,...
-2
votes
0
answers
19
views
Combine text classification and entity extraction in Google Vertex AI
I'd like to both classify text document and extract entities from it. Is it possible to combine these in a single (AutoML) model or should it be separate tasks?
Also, when I need different entities ...
0
votes
0
answers
17
views
BigQuery ML model evaluate keeps returning null
Basically, title. I am trying to query an evaluation for an TimeSeries ARIMA ML model I made. BigQuery has a designated function to do this. After training the model and using it to make a 30 day ...
0
votes
0
answers
19
views
How to balance a dataset using SCUT and the scutr-package in R
I was given a machine learning project in R by a collegue who can no longer work on it. I am currently trying to balance the used dataset with the SCUT function in the scutr package and I keep running ...
0
votes
0
answers
26
views
Google Cloud Vision ML via REST
I'm taking my first steps with Vision ML and using the REST interface. (https://vision.googleapis.com/v1/files:annotate). As API key I provide the key from the Firebase project settings. In the ...
-1
votes
0
answers
15
views
detect movement in videos
I know there a possible solutions to track if there is a car in an video or not. But is there any way to detect if the car is moving or standing?
Do you know some good books or else to learn more ...
0
votes
2
answers
26
views
Machine learning algorithm for correlation between indicators
I have a dataset with several indicators related to some geographical entities ,I want to study factors that influence an indicator A (among the other indicator) .I need to determine which indicators ...
0
votes
0
answers
23
views
Neural Network Feeding - Custom Information Extraction
I am trying to train a neural net. to extract specific information from text. I need to find entity information like attribute, dependency, etc.
The text input will be like this:
doc = "Student ...
-2
votes
0
answers
14
views
Recommending recipes based on grocery shopping history [closed]
I am writing a recommendation system using machine learning for an imagined grocery store chain as a project. The goal is to recommend users dinner recipes based on their product purchasing history.
I ...
0
votes
0
answers
16
views
python flair TextClassifier.load('en-sentiment') line giving SSLCertVerificationError: unable to get local issuer certificate (_ssl.c:1056)
the last line of my code below:
from flair.models import TextClassifier
from flair.data import Sentence
input_text = 'style and fit is good but the fabric is itchy'
classifier=TextClassifier.load('en-...
-4
votes
0
answers
25
views
how to solve AttributeError: 'NoneType' object has no attribute 'predict'
can anyone help how to solve this. I only got this form a vlog in internet
tf_model_predictions = shoe_model.predict(val_image_batch)
tf_pred_dataframe = pd.DataFrame(tf_model_predictions)
...
0
votes
1
answer
19
views
deepsort is not tracking all classes how to finetune my tracker yolov5+deepsort
yolov5 is detecting perfect while I run detect.py but unfortunately with deepsort track.py is not tracking even not detecting with tracker. how to set parameter my tracker ?
yolov5:
>> python ...
0
votes
0
answers
14
views
Handling Covariate Shift and Multi-collinearity in same Dataset - Pandas
The problem is related to Regression problem.
I am getting batches of data from a source of experiment which has approx 3k columns. However, I observed that almost 99% of the columns are highly ...
0
votes
0
answers
7
views
Matching products with PO
How can I match two products from an unstructured invoice (in .pdf format) with the PO (purchase order)?
How to deal with the cases when there are differences between what's in the invoice and what's ...
0
votes
0
answers
15
views
list index out of range? Iterating through NB models
I'm trying to def a function iterate through similar Naive Bayes models to save time but here I stuck at getting the result into an array as output.
models = {
0: GaussianNB(),
1: ...
-1
votes
0
answers
8
views
Deployment of Machine Learning models on KAFKA
Anyone having experience with deploying ML models on KAFKA.
if yes kindly refer to some useful links/sources or share your work for reference.
0
votes
0
answers
37
views
Neural network training and validation accuracy stuck at 50% and 48% respectively, loss not decreasing after that and score turns out bad
i've been working on a multiclass classification neural network model on Rstudio with KERAS and Tensorflow where i am trying to achieve at least 70 to 80% accuracy because i had tried tuning the ...
0
votes
1
answer
14
views
AttributeError: module 'keras.api._v2.keras.experimental' has no attribute 'export_saved_model'
can anyone here help me fix this? i cant find the solution to this in the internet. also i am not good in python/machine learning
tf.keras.experimental.export_saved_model(model, SHOE_SAVED_MODEL)
...
0
votes
1
answer
19
views
Could any one help me why am I getting +AC0 in the dataframe when I imported the csv file
I have include the snap here.enter image description here
0
votes
1
answer
55
views
Tensorflow Conv2D layers input_shape configuration error: ValueError: Input 0 of layer "sequential" is incompatible with the layer:
I have a question about the input_shape of CONV2D layer.
As the official doc says:
4+D tensor with shape: batch_shape + (channels, rows, cols) if
data_format='channels_first' or 4+D tensor with shape:...
0
votes
1
answer
23
views
How to deal with NotImplementedError in training Unet model?
def train_fn(data_loader, model, optimizer):
model.train()
total_loss = 0.0
for images, masks in tqdm(data_loader):
images = images.to(DEVICE)
masks = masks.to(DEVICE)
optimizer.zero_grad()
...
0
votes
0
answers
18
views
If a policy is epsilon-greedy, is it technically stochastic? [closed]
Even thought if exploration doesn't happen, it's deterministic.
0
votes
0
answers
38
views
ColumnTransformer fails inside Pipelines
I am trying to make some sequential data transformation using Scikit learn, and recently while I was working on a project, I stumbled upon a bug that I think can cause many issues for many people.
In ...
0
votes
0
answers
22
views
A Tensorflow issue while building a CNN model: TypeError: only integer scalar arrays can be converted to a scalar index
I have an idea to build an image dataset with corresponding label.
First, I convert the image of PNG format into tensor.
total = 100
image_list = np.empty(shape=(total, 128, 128, 3))
for i in tqdm(...
0
votes
0
answers
15
views
It it possible to have data leakage from the training set to the test set in a Machine Learning data preprocessing?
I'm building this flowchart for a machine learning pipeline and during the data preprocessing I found myself wondering if is it possible to have data leakage (besides from test to train) also from ...
0
votes
1
answer
31
views
Trying to predict, prediction value greater than 0.5 it will be positive prediction (1) , under 0.5 value as 0 ,negative , but having problem in loop
After training the model , evaluating prediction that is on dtype=float32.
y_pred = model.predict(x_test)
y_pred
array([[0.952564 ],
[0.40119413],
[0.8223132 ],
...,
[0....
1
vote
1
answer
22
views
Machine Learning: multiple steps per turn
I have a question of understanding. I have an environment that passes possible actions and the state of the board to the agent. The agent chooses an action and stores it, together with the state, in a ...
0
votes
1
answer
27
views
Model doesn't learn - loss and accuracy doesn't change
Im trying to make a model to predict one-hot encoding from sequence. I take sequence of any length on input and on output I've got one-hot encoded values. It looks like this:
INPUTS
0 ...
-2
votes
0
answers
16
views
Time series prediction with one known variable as input
I am currently working on a time series problem with 2 variables on past dataset, let's say A and B. See example below (not real data):
Day A B
1 1 100
2 4 ...
1
vote
1
answer
23
views
How to atualize and calculate the derivative of the weights and bias of a 3 layer neural network (with only numpy)?
I'm trying to create a 3 layer neural network, with one input layer, one hidden layer and one output layer. The input layer is represented by a (1, 785) Numpy array, thinking that I'm classifying ...
1
vote
1
answer
34
views
Machine Learning question (Solving ValueError: could not convert string to float:)
I am running the example code Below:
import pandas as pd
from sklearn.tree import DecisionTreeClassifier
from sklearn.preprocessing import OneHotEncoder
How the CSV looks
url_data = pd.read_csv('...
0
votes
0
answers
20
views
How to deal this task with machine learning?
Question
I'm trying to deal following task with machine learning, but the performance is not so good. Actually I'm not familiar with around machine learning and data science, so I don't have much ...