0 votes
0 answers
9 views
Can I save and load a Keras Model with Feature Names added?I have data where I need to use numpy's "get_dummies" to convert the one Hot Encoding. When I train from a larger dataset I get all the possible encodings. When I predict I could possible ...
asked 8 hours ago4 votes
1 answer
40 views
Plot confusion matrix in black and whiteI currently have the following code: disp = ConfusionMatrixDisplay(confusion_matrix=cm) disp.plot() plt.show() This results into something like: However, I want the diagonal to be depicted with a ...
asked yesterday3 votes
1 answer
50 views
Reproduce a particular tree from the random forest using DecisionTreeRegressorI am trying to replicate a specific decision tree trained by a RandomForestRegressor class, using DecisionTreeRegressor. However, I cannot get the exact results, even with using the exact same ...
asked yesterday1 vote
0 answers
56 views
Ridge Polynomial Regression: How to get parameters for equation foundI've used sklearn for polynomial ridge regression. Using grid search, I am happy with the results. Now I would like to render it as a simple polynomial equation to run in a small python module. The ...
asked Jul 6 at 17:060 votes
0 answers
30 views
Add Feature extraction as part of a keras modelIs it possible to add feature extraction as part of a keras model, so when a user runs inference there is no need for computing those features as that part is done inside the model. Im looking for a ...
asked Jul 5 at 14:58 Building a sklearn compatible estimator: 'dict' object has no attribute 'requires_fit'I am trying to build a scikit-learn compatible estimator. I have built a custom class that inherits from BaseEstimator and RegressorMixin. However, when I try to use this, I run into an AttributeError:...
asked Jun 24 at 23:271 vote
0 answers
25 views
DBSCAN clustering points one cluster having points very distant from each other)I need to cluster a dataset of PFAS pollution, with coordinates (lat, lon). I tried to use DBSCAN as it seemed the go-to solution for spatial data clustering. I do get a result but it seems to be ...
asked Jun 24 at 13:420 votes
1 answer
31 views
Why does the y-intercept change when all features are used in a linear regression model vs only one feature? [closed]I'm training a linear regression on the "advertising sales dataset" When I train all of the features(columns) of the dataset together, I get a different y-intercept than if I trained the ...
asked Jun 24 at 7:151 vote
2 answers
96 views
Scikit-Learn Classifier model returns all zeroesSo, I'm trying to train a RandomForestClassifier Model. However, when I train it, it gives me all zeroes. And, I really can't seem to understand why. The dataset is HUGE (closer to like 75,0000 rows), ...
asked Jun 17 at 21:350 votes
0 answers
57 views
GroupKFold vs Random KFold [migrated]I'm working on a regression task to predict soil organic matter (%) using Gradient Boosting. In order to validate my model, I'm comparing standard KFold (random splits) vs GroupKFold where groups are ...
asked Jun 16 at 9:452 votes
2 answers
81 views
I'm working on a classification task using scikit-learn (LogisticRegression()) [closed]import pandas as pd from sklearn.model_selection import train_test_split from sklearn.preprocessing import MinMaxScaler from sklearn.linear_model import LogisticRegression from sklearn.metrics import ...
asked Jun 14 at 23:19 Why does sklearn GaussianMixtures spawn a cmd window when run from IDLE?When I run this code using IDLE in windows, it spawns a temporary cmd window that disappears shortly thereafter. import numpy as np import matplotlib.pyplot as plt from sklearn.mixture import ...
asked Jun 7 at 17:220 votes
0 answers
47 views
Python LogisticRegression() and RandomSearch: RuntimeWarningWorking on an assignment to knock out a logistic regression with random search for tuning, but I keep getting runtime warnings. Any idea what i'm doing wrong? /Library/Frameworks/Python.framework/...
asked May 27 at 11:422 votes
1 answer
80 views
Runtime warning in sklearn KMeansI am running k-means using sklearn but has been getting runtime warning. Can you please explain what's happening? I am a novice in sklearn, guidance much appreciated! Below is a sample code for ...
asked May 20 at 16:531 vote
1 answer
101 views
Grid search scikeras error : 'super' object has no attribute '__sklearn_tags__'I am trying to run a gridsearch in my pycharm jupyter notebook. Getting 'super' object has no attribute '__sklearn_tags__' error. This question was asked for RandomizedSearch previously, but none of ...
asked May 19 at 12:08RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4