Need help with your Discussion

Get a timely done, PLAGIARISM-FREE paper
from our highly-qualified writers!

glass
pen
clip
papers
heaphones

Kaggle Competition Using Regression Models in R Worksheet

Kaggle Competition Using Regression Models in R Worksheet

Kaggle Competition Using Regression Models in R Worksheet

Description

Description

What makes some songs become popular? The dataset describes popular songs based on auditory features such as loudness and tempo.

Goal

Construct a model using a dataset of popular songs to predict ratings based on auditory features of the songs included in scoringData.csv. (You may use linear regression, logistic regression, feature selection e.g. Lasso, decision tree or advance tree)

Metric

Submissions will be evaluated based on RMSE (root mean squared error). Lower the RMSE, better the model.

Submission File

The submission file should be in text format (.csv) with only two columns, id and rating. The rating column must contain predicted rating. The number of decimal places to use is up to you. The file should contain a header and have the following format:

"id","rating"
50400,37.3065
96747,37.1732
1824,36.9784
67597,36.9780
86944,36.8176
85423,37.0173

An example submission file (example_submission.csv) is shared with the set of files under Data.

Sample Code

Here is an illustration in R of how you can create a model, apply it to scoringData.csv to prepare a submission file.

# ensure analysisData.csv and scoringData.csv are in your working directory

# following code will read data and construct a simple model
songs = read.csv('analysisData.csv')
model = lm(rating~ tempo+time_signature,songs)

# read in scoring data and apply model to generate predictions
scoringData = read.csv('scoringData.csv')
pred = predict(model,newdata=scoringData)

# construct submission from predictions
submissionFile = data.frame(id = scoringData$id, rating = pred)
write.csv(submissionFile, 'sample_submission.csv',row.names = F)

* Disclaimer: This data is to be used solely for the purpose of the Project for this course. It is not recommended for any use outside of this competition.

Submission Count:

By the end of the competition, you must have at least 3 submissions. At least one must use a forest ranger model.

Attached File Descriptions:

  • analysisData.csv: Data for building a model
  • scoringData.csv: Use for applying predictions or scoring
  • example_submission.csv: Sample submission file in the desired format
Explanation & Answer:

Worksheet

User generated content is uploaded by users for the purposes of learning and should be used following our honor code & terms of service.

Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."

Order Solution Now

Our Service Charter


1. Professional & Expert Writers: Eminence Papers only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Eminence Papers are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Eminence Papers are known for the timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Eminence Papers, we have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.

We Can Write It for You! Enjoy 20% OFF on This Order. Use Code SAVE20

Stuck with your Assignment?

Enjoy 20% OFF Today
Use code SAVE20