Ml-Exp-3 - Jupyter Notebook
Ml-Exp-3 - Jupyter Notebook
Ml-Exp-3 - Jupyter Notebook
localhost:8888/notebooks/Downloads/ml-exp-3.ipynb 1/6
10/20/24, 10:54 PM ml-exp-3 - Jupyter Notebook
Gender_Male
0 False
1 False
2 False
3 False
4 False ,
0 1
1 0
2 1
3 0
4 0
Name: Exited, dtype: int64)
localhost:8888/notebooks/Downloads/ml-exp-3.ipynb 2/6
10/20/24, 10:54 PM ml-exp-3 - Jupyter Notebook
In [4]: # Step 4: Split the dataset into training and test sets
X_train, X_test, y_train, y_test = train_test_split(X_scaled, y, test_s
# Display the shapes of training and testing data to verify the split
print(f"X_train shape: {X_train.shape}")
print(f"X_test shape: {X_test.shape}")
print(f"y_train shape: {y_train.shape}")
print(f"y_test shape: {y_test.shape}")
localhost:8888/notebooks/Downloads/ml-exp-3.ipynb 3/6
10/20/24, 10:54 PM ml-exp-3 - Jupyter Notebook
Epoch 1/20
/opt/conda/lib/python3.10/site-packages/keras/src/layers/core/dense.p
y:87: UserWarning: Do not pass an `input_shape`/`input_dim` argument
to a layer. When using Sequential models, prefer using an `Input(shap
e)` object as the first layer in the model instead.
super().__init__(activity_regularizer=activity_regularizer, **kwarg
s)
localhost:8888/notebooks/Downloads/ml-exp-3.ipynb 4/6
10/20/24, 10:54 PM ml-exp-3 - Jupyter Notebook
localhost:8888/notebooks/Downloads/ml-exp-3.ipynb 6/6