api.submit: Submit Results to Kaggle

Description Usage Arguments Details See Also Examples

View source: R/api.R

Description

Upload a preformatted csv file with the predicted test results to Kaggle.

Usage

1
api.submit(filepath, username, password, competition, message = "")

Arguments

filepath

Path to the csv file with the predicted data to be uploaded.

username

Kaggle username to login to the Kaggle plattform.

password

Kaggle password to login to the Kaggle plattform.

competition

Name of the Kaggle competition the submission is intended for.

message

Additional message that describes the submission. Is optional and by default empty.

Details

This method allows to upload the predicted output in csv format to the Kaggle competition. It bases on the Kaggle CLI tool by floydwch which is a Python CLI tool. This requires an existing Python installation as well as having the Kaggle CLI tool installed (with Python and pip via pip install kaggle-cli). With the requirements given this method works as an R wrapper around this tool.

See Also

Makes use of the Kaggle CLI tool by floydwch which can be found at https://github.com/floydwch/kaggle-cli.

Examples

1
2
3
4
5
6
 KaggleHouse:::api.submit(
   filepath = "sample_submission.csv",
   username = "kaggle_user",
   password = "abc123",
   competition = "house-prices-advanced-regression-techniques"
 )

MarcoNiemann/kaggle_house documentation built on May 7, 2019, 2:50 p.m.