Skip to content
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

[Feature Request]: Add KNN regression #270

Closed
5 tasks done
Aditi22Bansal opened this issue Jun 3, 2024 · 3 comments
Closed
5 tasks done

[Feature Request]: Add KNN regression #270

Aditi22Bansal opened this issue Jun 3, 2024 · 3 comments

Comments

@Aditi22Bansal
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Feature Description

In this, first standardize the features using StandardScaler to ensure that all features have the same scale. Then, train a KNN regression model with 5 neighbors (n_neighbors=5). Then predict the test set results and evaluate the model using mean squared error and R^2 score

Use Case

Integrating a K-Nearest Neighbors (KNN) regression model alongside the existing linear regression model adds depth and versatility to the analysis of salary prediction in the developer community dataset.

Benefits

By incorporating a KNN regression model alongside the existing linear regression model, the project can potentially achieve higher predictive accuracy. KNN regression is particularly useful for capturing non-linear relationships in the data, which may lead to more accurate salary predictions.
The addition of KNN regression enables a more comprehensive exploration of the relationships between features and salaries in the developer community dataset. By leveraging the local information from neighboring data points, KNN regression can uncover subtle patterns and nuances that may be overlooked by linear regression.

Priority

High

Record

  • I agree to follow this project's Code of Conduct
  • I'm a GSSOC contributor
  • I want to work on this issue
  • I'm willing to provide further clarification or assistance if needed.
Copy link

github-actions bot commented Jun 3, 2024

Hi there! Thanks for opening this issue. We appreciate your contribution to this open-source project. We aim to respond or assign your issue as soon as possible.

@Aditi22Bansal
Copy link
Author

@sanjay-kv
Kindly assign me this issue

Copy link

github-actions bot commented Jun 5, 2024

Hello @Aditi22Bansal! Your issue #270 has been closed. Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants