Go to main content
Did you know? By making a gift to AgEcon Search, you are helping ensure that our small non-profit continues to provide free full-text access to 15,000 visitors a day from 170+ countries
Format
BibTeX
MARCXML
TextMARC
MARC
DublinCore
EndNote
NLM
RefWorks
RIS

Files

Abstract

I present two related commands, r_ml_stata_cv and c_ml_stata_cv, for fitting popular machine learning methods in both a regression and a classification setting. Using the recent Stata/Python integration platform introduced in Stata 16, these commands provide hyperparameters’ optimal tuning via K-fold cross-validation using grid search. More specifically, they use the Python Scikitlearn application programming interface to carry out both cross-validation and outcome/label prediction.

Details

PDF

Statistics

from
to
Export
Download Full History