Dataset

class oci.generative_ai.models.Dataset(**kwargs)

Bases: object

The dataset used to fine-tune the model.

Only one dataset is allowed per custom model, which is split 80-20 for training and validating. You must provide the dataset in a JSON Lines (JSONL) file. Each line in the JSONL file must have the format:

{“prompt”: “<first prompt>”, “completion”: “<expected completion given first prompt>”}

Attributes

DATASET_TYPE_OBJECT_STORAGE A constant which can be used with the dataset_type property of a Dataset.
dataset_type [Required] Gets the dataset_type of this Dataset.

Methods

__init__(**kwargs) Initializes a new Dataset object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
DATASET_TYPE_OBJECT_STORAGE = 'OBJECT_STORAGE'

A constant which can be used with the dataset_type property of a Dataset. This constant has a value of “OBJECT_STORAGE”

__init__(**kwargs)

Initializes a new Dataset object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:

The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:dataset_type (str) – The value to assign to the dataset_type property of this Dataset. Allowed values for this property are: “OBJECT_STORAGE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
dataset_type

[Required] Gets the dataset_type of this Dataset. The type of the data asset.

Allowed values for this property are: “OBJECT_STORAGE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The dataset_type of this Dataset.
Return type:str
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.