Top "Data-science" questions

Implementation questions about data science.

ValueError: Must pass DataFrame with boolean values only

Question In this datafile, the United States is broken up into four regions using the "REGION" column. Create a query …

python database pandas data-science
Scikit-learn's LabelBinarizer vs. OneHotEncoder

What is the difference between the two? It seems that both create new columns, which their number is equal to …

python encoding scikit-learn data-science categorical-data
How to use advanced activation layers in Keras?

This is my code that works if I use other activation layers like tanh: model = Sequential() act = keras.layers.advanced_…

python machine-learning neural-network keras data-science
Difference between Standard scaler and MinMaxScaler

What is the difference between MinMaxScaler and standard scaler. MMS= MinMaxScaler(feature_range = (0, 1)) ( Used in Program1) sc = StandardScaler() ( In another …

python data-science
Normalize data before or after split of training and testing data?

I want to separate my data into train and test set, should I apply normalization over data before or after …

machine-learning data-science normalization training-data train-test-split
How to tell which Keras model is better?

I don't understand which accuracy in the output to use to compare my 2 Keras models to see which one is …

python machine-learning keras data-science
What does the standard Keras model output mean? What is epoch and loss in Keras?

I have just built my first model using Keras and this is the output. It looks like the standard output …

python machine-learning neural-network keras data-science
How can I split a Dataset from a .csv file for Training and Testing?

I'm using Python and I need to split my .csv imported data in two parts, a training and test set, …

python csv split data-science
How to input data into Keras? Specifically what is the x_train and y_train if I have more than 2 columns?

How can I input data into keras? What is the structure? Specifically what is the x_train and y_train …

neural-network keras data-science
GridSearchCV - XGBoost - Early Stopping

i am trying to do hyperparemeter search with using scikit-learn's GridSearchCV on XGBoost. During gridsearch i'd like it to early …

python-3.x scikit-learn regression data-science xgboost