remove_example-Collection-method: This is an API made to remove a single instance of training...

Description Usage Arguments Value Examples

Description

This is an API made to remove a single instance of training data. This is useful in cases where a single instance of content has been modified, but the remaining examples remain valid. For example, if a piece of content has been retagged.

Usage

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

Arguments

version

for api version

...

additional arguments to passed to request

collection

the collection object for this model

The

exact text you wish to remove from the given collection. If the string provided does not match a known piece of text then this will fail. Again, this is required if an id is not provided, and vice-versa.

api_key

your personal indico API key

cloud

subdomain for indico private cloud

Value

List with available collections

Examples

1
2
3
4
5
6
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)
remove_example(collection, test_data[[1]][[1]])

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