addData-Collection-method: This is the basic training endpoint. Given a piece of text...

Description Usage Arguments Value Examples

Description

This is the basic training endpoint. Given a piece of text and a score, either categorical or numeric, this endpoint will train a new model given the additional piece of information.

Usage

1
2
3
## S4 method for signature 'Collection'
addData(collection_object, data, version = NULL,
  domain = NULL, ...)

Arguments

data

the text and collection/score associated with it. The length of the text (string) should ideally be longer than 100 characters and contain at least 10 words. While the API will support shorter text, you will find that the accuracy of results improves significantly with longer examples. For an additional fee, this end point will support image input as well. The collection/score can be a string or float. This is the variable associated with the text. This can either be categorical (the tag associated with the post) or numeric (the number of Facebook shares the post received). However it can only be one or another within a given label.

version

for api version

...

additional arguments to passed to request

collection

the collection object for this model

api_key

your personal indico API key

cloud

subdomain for indico private cloud

Value

List with available collections

Examples

1
2
3
4
5
collection <- Collection(name='example')
test_data <- list(list("I love my friends!", "extrovert"),
                  list("I love to be alone", "introvert"),
                  list("I have mixed feelings on people", "ambivert"))
addData(collection, test_data)

IndicoDataSolutions/IndicoIo-R documentation built on May 7, 2019, 6:37 a.m.