Skip to content

Add implementation of the multi-layer perceptron classifier from scratch #12756

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Prev Previous commit
Correct errors in multilayer_perceptron_classifier_from_scratch.py
  • Loading branch information
duuan authored May 14, 2025
commit 64e52d10a121003dc027b376b31818fdfdcbf7cb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(self, features: list[list[float]], labels: list[int]) -> None:

def get_train_test_data(
self,
) -> tuple[np.ndarray, np.ndarray, list[np.ndarray], list[np.ndarray]]:
) -> tuple[np.ndarray, list[np.ndarray], np.ndarray, list[np.ndarray]]:
"""
Splits the data into training and testing sets.
Here, we manually split the data.
Expand Down