Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

-1 votes
0 answers
12 views

What Is the best ML API for a Deep Audio Classification Model on the Raspberry Pi 0 2W?

I'd like to get your opinions on which ML API would be best for building an audio classification model. This model will be deployed on a small Raspberry Pi (Raspberry Pi 0 2W; could be something ...
Darius A's user avatar
0 votes
0 answers
27 views

Decision Tree Classifier gives wrong results

I'm taking a machine learning course with an assignment to implement a fit method for DecisionTreeClassifier. Here's my code: import numpy as np import pandas as pd class MyTreeClf: def __init__(...
Kibar Jafarguliyev's user avatar
1 vote
1 answer
44 views

SHAP values for linear model different from those calculated manually

I train a linear model to predict house price, and then I compare the Shapley values calculation manually vs the values returned by the SHAP library and they are slightly different. My understanding ...
Sole Galli's user avatar
0 votes
0 answers
22 views

Why are gradients None for all variables in my TensorFlow Siamese Network during training?

I'm training a Siamese Network in TensorFlow for image registration. The network takes a pair of images (fixed and moving) and outputs parameters for an affine transformation that aligns the moving ...
Melissa's user avatar
  • 11
0 votes
0 answers
7 views

min_samples_leaf in GradientBoostedClassifier() having weird behavior

Trying to tune the min_samples_leaf in a GradientBoostedClassifer(). I'm seeing expected results with the bias/variance tradeoff. However, just to test the boundaries, I made the min_samples_leaf > ...
deutan_suave's user avatar
-2 votes
0 answers
14 views

How to Improve RAG Performance with Low-Quality PDF Files?

I'm making an RAG project. One of the steps is to extract the text from pdf files. I found that it worked well if the input pdf quality is good, but when the input pdf quality is bad, my RAG fails to ...
user26523689's user avatar
0 votes
0 answers
17 views

Implementation of training algorithm for Recurrent Neural Networks with multiple inputs in Keras

I was reading up on RNNs in a book called "Hands-on Machine Learning with Scikit-Learn, Keras & TensorFlow" by Aurelien Geron. I came across a very simple implementation for a sequence-...
Matthew Cronembold's user avatar
0 votes
2 answers
39 views

AttributeError: 'list' object has no attribute 'shape' error

I am trying to predict stock prices. Here is my code: import pandas as pd import yfinance as web import numpy as np from sklearn.preprocessing import MinMaxScaler from tensorflow.python.keras.models ...
Subbsos's user avatar
0 votes
0 answers
17 views

ValueError: Arguments clone_function and input_tensors are only supported for Sequential models or Functional models

I am using Quantization aware training. I refer to the lstm code on the Internet and want to put QAT into lstm, but I encountered a ValueError. ValueError Traceback (...
Vina's user avatar
  • 11
-1 votes
0 answers
12 views

I keep encountering this problem training a Random forest regressor

/usr/local/lib/python3.10/dist-packages/sklearn/base.py:432: UserWarning: X has feature names, but RandomForestRegressor was fitted without feature names warnings.warn( I have tried adding .values ...
Emmanuel Owusu's user avatar
-2 votes
0 answers
12 views

feature importance with XGboost returns only 1 feature out of 1000 feature

My XGClassifier or XGboost always returns only one feature out of 1000 features while printing get_fscore(). xgbc.get_booster().get_fscore() output- {feature_m:98} xgbc= XGBClassifier() model = xgbc....
khushi's user avatar
  • 398
1 vote
1 answer
29 views

Leave one out encoding on test set with transform

Context: When preprocessing a data set using sklearn, you use fit_transform on the training set and transform on the test set, to avoid data leakage. Using leave one out (LOO) encoding, you need the ...
Jelle's user avatar
  • 251
-1 votes
0 answers
14 views

Flask ridge regression model prediction

When I run the application.py it will run and when i give the predicted data points to the model then submit model.then error will be showing like this Internal Server Error The server encountered an ...
Yashwanth Singh's user avatar
-1 votes
0 answers
26 views

Predicting Lorenz Attractor using the Gratz University LSM model

I am currently studiying LSMs and after reading several papers, i think that I grasped the main inforamtions about this model of Reservoir Computing. However, I am struggling to get good results with ...
Belghomari Abdelmalek's user avatar
1 vote
2 answers
46 views

Hidden Markov Model in hmmlearn Not Converging

I'm using the hmmlearn library to fit a Hidden Markov Model (HMM) to a dataset I've generated, but I'm encountering an issue where the model does not converge. Below is my code: a = np.array([ [0....
Jakub Bednarski's user avatar

15 30 50 per page
1
2 3 4 5
1823