Git Product home page Git Product logo

ctvsuggesttrain's Introduction

CTVsuggestTrain

CTVsuggestTrain carries out the model building, and creates the data.frame containing the classification probabilities that is outputted by the CTVsuggest package.
These R packages are based on follow up work of my 4th year university dissertation supervised by Ioannis Kosmidis

The CTVsuggestTrain R package has a single exported function: Train_model(), that constructs features and trains a multinomial logistic regression model with the objective of classifying CRAN packages to available CRAN Task Views. For a more detailed description of the model, view the Model Section of the CTVsuggest Overview Vignette.

Important to note that in order to output suggestions using the CTVsuggest package, you can completely ignore the CTVsuggestTrain package. I use CTVsuggestTrain to train the model weekly in order to update the predictions provided by CTVsuggest. Having the code packaged makes it easier for me to carry out model training, and allows the model building to be transparent for others to inspect.

For further detail on the workflow, view the Packages Workflow Section of the CTVsuggest Overview Vignette.

Installation

You can install the development version of CTVsuggestTrain from GitHub with:

# install.packages("devtools")
devtools::install_github("DylanDijk/CTVsuggestTrain")

Example

The following code saves the model, model accuracy and data.frame containing classification probabilities for packages to an "OUTPUT" directory in your current working directory.

library(CTVsuggestTrain)
Train_model(save_output = TRUE, save_path = "OUTPUT/")

The code example above is the code I run to retrieve an up to date model. The Train_model() function takes a while to run, on my machine (Windows Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz, 2112 Mhz, 4 Cores, 8 Logical Processors) it takes 30 minutes.

ctvsuggesttrain's People

Contributors

actions-user avatar dylandijk 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.