can you write me a project following the tasks bellow 1. PROBLEM DEFINITION Select a…
- User
can you write me a project following the tasks bellow 1. PROBLEM DEFINITION Select a problem you are interested in and find a real dataset that you can apply classification or regression to. In your own words, describe the importance of the problem, define the problem in terms of the input and output variable, describe the basics statistics of the data (count and type of variables, mean / std of values). Draw histograms of main features. Compute the correlation between input/ output variables. 2. APPLY SCIKITLEARN MODEL Divide the data into training and testing. Do preprocessing if necessary. Train a scikit-learn model on the training set, and evaluate its performance on the testing set. Use at least 3 evaluation metrics for comparison. 3. IMPROVE YOUR MODEL’S PERFORMANCE Now your goal is to improve your model’s performance. There are many ways to do so, here are some suggestions:
-
Try different hyperparameters during training
-
If data has many features, do dimensionality reduction or feature selection
-
Clean / preprocess the data
OPTION 1:
- Choose one of the four algorithms - KNN, DT,NB or LR - to implement from scratch. College of Computer Science and Engineering Department of Computer Science and Artificial Intelligence CCAI-312: Pattern Recognition IMPLEMENT MODEL USING PYTHON
- Implement the chosen algorithm from scratch using Python.
- Train and test your implemented algorithm on the dataset and evaluate it using evaluation metrics used in task 2
- Compare the performance of your implemented algorithm with the Scikit-Learn model and present your findings in a report.
- Include a discussion on the differences in performance between the implemented algorithm and Scikit-Learn model and an explanation of why these differences may have occurred.
OPTION 2: TRAIN A NEW MODEL
- Choose a machine learning model that is not covered in class but is relevant to your field of study or area of interest.
- Study and explain the new model to gain an understanding of its principles, strengths, weaknesses, and applications.
- Train and test the performance of the new model and evaluate it using evaluation metrics used in task 2
- Compare the performance of the new model with the Scikit-Learn model and present your findings in a report.
- Discuss the strengths and weaknesses of both models and explain why the new model may be useful in certain situations. Project Deliverables: Your project will be worth 10 % of your final class grade, and will have 2 deliverables:
- Final Report and Code (June 1) You must submit a written report on your project, structured as a standard academic conference paper, and the complete, documented source code for it. This should be a 4-5 pages short report (including cover page). It should consist of: Cover page: Group member names, Project title, … Introduction Problem Description Data Description Method Experiment and results (Please include visualizations) Discussion Conclusion References
-
- Assistant
- User
can you procced using option 1 and write me the code for it
- Assistant
Certainly! Here's the implementation of the KNN algorithm from scratch in Python, and its comparison with the Scikit-Learn Linear Regression model:
- User
can you write the code again using a data set more relevent to machine learning
- Assistant
- User
can you use the saudi arabia real estate dataset and make sure the code works on the website "kaggle" and run me through the step by step procces of how to run the code after you write it?
- Assistant