Skip to content Skip to sidebar Skip to footer
Showing posts with the label Machine Learning

Performing 1d Convolution Using 2d Kernel In Keras

I am currently working on a CNN network, in which i want to apply a 2d kernel on a image, but it on… Read more Performing 1d Convolution Using 2d Kernel In Keras

Groupby With Sub-ranges In Pandas

I am researching soccer dataset LEAGUE HOME DRAW AWAY WINNER PREDICTED PROFIT 0 … Read more Groupby With Sub-ranges In Pandas

Ntlk & Python, Plotting Roc Curve

I am using nltk with Python and I would like to plot the ROC curve of my classifier (Naive Bayes). … Read more Ntlk & Python, Plotting Roc Curve

Shape Mismatch: If Categories Is An Array, It Has To Be Of Shape (n_features,)

Here is the code I'm trying to execute to encode the values of the first column of my data set … Read more Shape Mismatch: If Categories Is An Array, It Has To Be Of Shape (n_features,)

Why Roc_auc Produces Weird Results In Sklearn?

I have a binary classification problem where I use the following code to get my weighted avarege pr… Read more Why Roc_auc Produces Weird Results In Sklearn?

Using Sgd Without Using Sklearn (logloss Increasing With Every Epoch)

def train(X_train,y_train,X_test,y_test,epochs,alpha,eta0): w,b = initialize_weights(X_train[0]… Read more Using Sgd Without Using Sklearn (logloss Increasing With Every Epoch)

Neural Network Backpropagation Algorithm Not Working In Python

I am writing a neural network in Python, following the example here. It seems that the backpropagat… Read more Neural Network Backpropagation Algorithm Not Working In Python

Stratifiedshufflesplit: Valueerror: The Least Populated Class In Y Has Only 1 Member, Which Is Too Few.

I'm using the StratifiedShuffleSplit cross validator for predicting the house prices in the Bos… Read more Stratifiedshufflesplit: Valueerror: The Least Populated Class In Y Has Only 1 Member, Which Is Too Few.

Keras Model Not Learning

My Keras model is not learning anything and I can't figure out why. I even reduced the training… Read more Keras Model Not Learning

What Is The 90/90 Shown In Keras Output Data While Training The Model?

90/90 - 0s - loss: 0.0098 - accuracy: 0.0011 This is my output while training my model . what is th… Read more What Is The 90/90 Shown In Keras Output Data While Training The Model?

How To Set Up Lstm Network For Predict Multi-sequence?

I am learning how to set up the RNN-LSTM network for prediction. I have created the dataset with on… Read more How To Set Up Lstm Network For Predict Multi-sequence?

Error: Create Version Failed. Bad Model Detected With Error: "failed To Load Model: Could Not Load The Model

clf = svm.SVC() # Giving test data as input clf.fit(X_train, y_train) joblib.dump(clf, 'model.j… Read more Error: Create Version Failed. Bad Model Detected With Error: "failed To Load Model: Could Not Load The Model

Typeerror: '>' Not Supported Between Instances Of 'nonetype' And 'float'

I have this code and it raise an error in python 3 and such a comparison can work on python 2 how c… Read more Typeerror: '>' Not Supported Between Instances Of 'nonetype' And 'float'

Computing Auc And Roc Curve From Multi-class Data In Scikit-learn (sklearn)?

I am trying to use the scikit-learn module to compute AUC and plot ROC curves for the output of thr… Read more Computing Auc And Roc Curve From Multi-class Data In Scikit-learn (sklearn)?

Group By And Fill Missing Datetime Values

What I'm just trying is to group a Pandas Dataframe by contract and date, and fill missing date… Read more Group By And Fill Missing Datetime Values

Attributeerror While Implementing Famd With Smotenc In A Imblearn Pipeline

I'm trying to implement a pipeline with FAMD, SMOTENC, and other preprocessing steps. However i… Read more Attributeerror While Implementing Famd With Smotenc In A Imblearn Pipeline

How To Use Keras Predict_proba To Output 2 Columns Of Probability?

I use this code to predict the probability of 0 and 1 in x_test, but the result is only one column … Read more How To Use Keras Predict_proba To Output 2 Columns Of Probability?

Iterating Across Multiple Columns In Pandas Df And Slicing Dynamically

TLDR: How to iterate across all options of multiple columns in a pandas dataframe without specifyin… Read more Iterating Across Multiple Columns In Pandas Df And Slicing Dynamically

Theano 'expected An Array-like Object, But Found A Variable': Using Scan & Categorical_crossentropy

I'm trying to sum multiple loss in theano but I can't make it work. I'm using the categ… Read more Theano 'expected An Array-like Object, But Found A Variable': Using Scan & Categorical_crossentropy

'list' Object Has No Attribute 'predict'

I want to deploy a breast cancer detection ml model using flask. here's the error: File 'C:… Read more 'list' Object Has No Attribute 'predict'