Welcome to my Machine Learning Framework!
This is a Python-based machine learning framework designed for data handling and preprocessing. its really just practice of OOP in python, you can try recreate this step by step to hone your skills
- Data loading from CSV, Parquet, and Pickle formats.
- Data splitting for model training and testing.
- Data preprocessing for handling missing values and scaling features.
- Practice Object-Oriented Programming (OOP) in a fun way!
- Linear regression
- KNN
-
Clone this repository to your local machine:
-
git clone https://github.com/your-username/ml-framework.git
-
-
Install the required dependencies:
-
pip install -r requirements.txt
-
-
Start using the framework in your projects!
You can use this framework by creating instances of the
DataHandler
andDataPreprocessor
classes. Here's an example:#Import the classes from data_handler import DataHandler from data_preprocessor import DataPreprocessor # Load data data_handler = DataHandler("your_dataset.csv") data_handler.load_data() # Split the data data_handler.splitting(test_size=0.2) # Preprocess the data preprocessor = DataPreprocessor(data_handler.train_data) preprocessed_data = preprocessor.transform() # Now you're ready for machine learning!