Abstract class for all models that do not rely on the python library 'transformers'.
Value
Objects of this containing fields and methods used in several other classes in 'ai for education'. This class is not designed for a direct application and should only be used by developers.
Public fields
model
('tensorflow_model' or 'pytorch_model')
Field for storing the 'tensorflow' or 'pytorch' model after loading.model_config
('list()')
List for storing information about the configuration of the model.last_training
('list()')
List for storing the history, the configuration, and the results of the last training. This information will be overwritten if a new training is started.last_training$start_time
: Time point when training started.last_training$learning_time
: Duration of the training process.last_training$finish_time
: Time when the last training finished.last_training$history
: History of the last training.last_training$data
: Object of classtable
storing the initial frequencies of the passed data.last_training$config
: List storing the configuration used for the last training.
Methods
Method set_publication_info()
Method for setting publication information of the model.
Method set_model_description()
Method for setting a description of the model.
Usage
AIFEBaseModel$set_model_description(
eng = NULL,
native = NULL,
abstract_eng = NULL,
abstract_native = NULL,
keywords_eng = NULL,
keywords_native = NULL
)
Arguments
eng
string
A text describing the training, its theoretical and empirical background, and output in English.native
string
A text describing the training , its theoretical and empirical background, and output in the native language of the model.abstract_eng
string
A text providing a summary of the description in English.abstract_native
string
A text providing a summary of the description in the native language of the model.keywords_eng
vector
of keyword in English.keywords_native
vector
of keyword in the native language of the model.
Method save()
Method for saving a model.
Method load()
Method for importing a model.
Method get_package_versions()
Method for requesting a summary of the R and python packages' versions used for creating the model.
Method get_sustainability_data()
Method for requesting a summary of tracked energy consumption during training and an estimate of the resulting CO2 equivalents in kg.
Method get_text_embedding_model_name()
Method for requesting the name (unique id) of the underlying text embedding model.
Method check_embedding_model()
Method for checking if the provided text embeddings are created with the same TextEmbeddingModel as the model.
Arguments
text_embeddings
Object of class EmbeddedText or LargeDataSetForTextEmbeddings.
Returns
TRUE
if the underlying TextEmbeddingModel are the same. FALSE
if the models differ.
Method is_configured()
Method for checking if the model was successfully configured. An object can only be used if this
value is TRUE
.
Method get_private()
Method for requesting all private fields and methods. Used for loading and updating an object.