Package: basemodels 1.1.0
basemodels: Baseline Models for Classification and Regression
Providing equivalent functions for the dummy classifier and regressor used in 'Python' 'scikit-learn' library. Our goal is to allow R users to easily identify baseline performance for their classification and regression problems. Our baseline models use no predictors, and are useful in cases of class imbalance, multiclass classification, and when users want to quickly identify how much improvement their statistical and machine learning models are over several baseline models. We use a "better" default (proportional guessing) for the dummy classifier than the 'Python' implementation ("prior", which is the most frequent class in the training set). The functions in the package can be used on their own, or introduce methods named 'dummy_regressor' or 'dummy_classifier' that can be used within the caret package pipeline.
Authors:
basemodels_1.1.0.tar.gz
basemodels_1.1.0.zip(r-4.5)basemodels_1.1.0.zip(r-4.4)basemodels_1.1.0.zip(r-4.3)
basemodels_1.1.0.tgz(r-4.4-any)basemodels_1.1.0.tgz(r-4.3-any)
basemodels_1.1.0.tar.gz(r-4.5-noble)basemodels_1.1.0.tar.gz(r-4.4-noble)
basemodels_1.1.0.tgz(r-4.4-emscripten)basemodels_1.1.0.tgz(r-4.3-emscripten)
basemodels.pdf |basemodels.html✨
basemodels/json (API)
# Install 'basemodels' in R: |
install.packages('basemodels', repos = c('https://ying-ju.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/ying-ju/basemodels/issues
Last updated 1 years agofrom:c1837f72a8. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 21 2024 |
R-4.5-win | OK | Nov 21 2024 |
R-4.5-linux | OK | Nov 21 2024 |
R-4.4-win | OK | Nov 21 2024 |
R-4.4-mac | OK | Nov 21 2024 |
R-4.3-win | OK | Nov 21 2024 |
R-4.3-mac | OK | Nov 21 2024 |
Exports:dummy_classifierdummy_regressordummyClassifierdummyRegressorpredict_dummy_classifierpredict_dummy_regressor
Dependencies:
Readme and manuals
Help Manual
Help page | Topics |
---|---|
dummy classifier for a categorical variable. | dummy_classifier |
dummy classifier for a categorical variable, used with the train function in caret. | dummy_classifier_caret |
dummy regressor for a numerical variable. | dummy_regressor |
dummy regressor for a numerical variable, used in the train function in caret. | dummy_regressor_caret |
a method used for the train function in caret | dummyClassifier |
a method used for the train function in caret | dummyRegressor |
dummy classifier predictor | predict_dummy_classifier |
dummy regressor predictor | predict_dummy_regressor |
probabilities for predicting classes | predict_proba |