Git Product home page Git Product logo

hudk5053-machine-learning's Introduction

Machine Learning Activity

A mini ML competition. Who can produce the best model to predict pass/fail

Download

  • Download the Open University Learning Analytics dataset from here
  • Import the studentVle.csv, studentAssessment.csv and studentInfo.csv files into R

Wrangling

  • Calculate the average daily number of clicks (site interactions) for each student from the studentVle dataset
  • Calculate the average assessment score for each student from the studentAssessment dataset
  • Merge your click and assessment score average values into the the studentInfo dataset

Create a Validation Set

  • Split your data into two new datasets, TRAINING and TEST, by randomly selecting 20% of the students for the TEST set

Explore

  • Generate summary statistics for the variable final_result
  • Ensure that the final_result variable is binary (Remove all students who withdrew from a courses and convert all students who recieved distinctions to pass)
  • Visualize the distributions of each of the variables for insight
  • Visualize relationships between variables for insight

Model Training

  • You will be allocated one of the following models to test:

    CART, Neural Network, Genetic Algorithm, Naive Bayes, K-nearest neighbors

  • Using the trainControl command in the caret package create a 10-fold cross-validation harness:
    control <- trainControl(method="cv", number=10)

  • Using the standard caret syntax fit your model and measure accuracy:
    fit <- train(final_result~., data=TRAINING, method=YOUR MODEL, metric="accuracy", trControl=control)

  • Generate a summary of your results and create a visualization of the accuracy scores for your ten trials

  • Make any tweaks to your model to try to improve its performance

Model Testing

  • Use the predict function to test your model
    predictions <- predict(fit, TEST)
  • Generate a confusion matrix for your model test
    confusionMatrix(predictions, TEST$final_result)

hudk5053-machine-learning's People

Contributors

charles-lang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.