aifeducation1.1.1 package

Artificial Intelligence for Education

aife_transformer_maker

R6 object of the AIFETransformerMaker class

AIFEBaseModel

Base class for models using neural nets

AIFETransformerMaker

R6 class for transformer creation

AIFETrType

Transformer types

auto_n_cores

Number of cores for multiple tasks

calc_standard_classification_measures

Calculate standard classification measures

check_aif_py_modules

Check if all necessary python modules are available

clean_pytorch_log_transformers

Clean pytorch log of transformers

cohens_kappa

Calculate Cohen's Kappa

create_config_state

Create config for R interfaces

create_data_embeddings_description

Generate description for text embeddings

create_dir

Create directory if not exists

create_synthetic_units_from_matrix

Create synthetic units

DataManagerClassifier

Data manager for classification tasks

dot-AIFEBaseTransformer

Base R6 class for creation and definition of `.AIFE*Transformer-like...

dot-AIFEBertTransformer

Child R6 class for creation and training of BERT transformers

dot-AIFEDebertaTransformer

Child R6 class for creation and training of DeBERTa-V2 transformer...

dot-AIFEFunnelTransformer

Child R6 class for creation and training of Funnel transformers

dot-AIFELongformerTransformer

Child R6 class for creation and training of Longformer transformer...

dot-AIFEMpnetTransformer

Child R6 class for creation and training of MPNet transformers

dot-AIFERobertaTransformer

Child R6 class for creation and training of RoBERTa transformers

dot-AIFETrObj

Transformer objects

EmbeddedText

Embedded text

fleiss_kappa

Calculate Fleiss' Kappa

generate_id

Generate ID suffix for objects

get_alpha_3_codes

Country Alpha 3 Codes

get_coder_metrics

Calculate reliability measures based on content analysis

get_file_extension

Get file extension

get_n_chunks

Get the number of chunks/sequences for each case

get_py_package_versions

Get versions of python components

get_synthetic_cases_from_matrix

Create synthetic cases for balancing training data

install_aifeducation

Install aifeducation on a machine

install_py_modules

Installing necessary python modules to an environment

is.null_or_na

Check if NULL or NA

kendalls_w

Calculate Kendall's coefficient of concordance w

kripp_alpha

Calculate Krippendorff's Alpha

LargeDataSetBase

Abstract base class for large data sets

LargeDataSetForText

Abstract class for large data sets containing raw texts

LargeDataSetForTextEmbeddings

Abstract class for large data sets containing text embeddings

License_Server

Server function for: graphical user interface for showing the license.

load_from_disk

Loading objects created with 'aifeducation'

long_load_target_data

Load target data for long running tasks

matrix_to_array_c

Reshape matrix to array

output_message

Print message

print_message

Print message (message())

Reliability_Server

Server function for: graphical user interface for displaying the relia...

Reliability_UI

Graphical user interface for displaying the reliability of classifiers...

run_py_file

Run python file

save_to_disk

Saving objects created with 'aifeducation'

set_config_cpu_only

Setting cpu only for 'tensorflow'

set_config_gpu_low_memory

Setting gpus' memory usage

set_config_os_environ_logger

Sets the level for logging information in tensorflow

set_config_tf_logger

Sets the level for logging information in tensorflow

set_transformers_logger

Sets the level for logging information of the 'transformers' library

start_aifeducation_studio

Aifeducation Studio

summarize_tracked_sustainability

Summarizing tracked sustainability data

TEClassifierProtoNet

Text embedding classifier with a ProtoNet

TEClassifierRegular

Text embedding classifier with a neural net

TEFeatureExtractor

Feature extractor for reducing the number for dimensions of text embed...

TextEmbeddingModel

Text embedding model

to_categorical_c

Transforming classes to one-hot encoding

In social and educational settings, the use of Artificial Intelligence (AI) is a challenging task. Relevant data is often only available in handwritten forms, or the use of data is restricted by privacy policies. This often leads to small data sets. Furthermore, in the educational and social sciences, data is often unbalanced in terms of frequencies. To support educators as well as educational and social researchers in using the potentials of AI for their work, this package provides a unified interface for neural nets in 'PyTorch' to deal with natural language problems. In addition, the package ships with a shiny app, providing a graphical user interface. This allows the usage of AI for people without skills in writing python/R scripts. The tools integrate existing mathematical and statistical methods for dealing with small data sets via pseudo-labeling (e.g. Cascante-Bonilla et al. (2020) <doi:10.48550/arXiv.2001.06001>) and imbalanced data via the creation of synthetic cases (e.g. Islam et al. (2012) <doi:10.1016/j.asoc.2021.108288>). Performance evaluation of AI is connected to measures from content analysis which educational and social researchers are generally more familiar with (e.g. Berding & Pargmann (2022) <doi:10.30819/5581>, Gwet (2014) <ISBN:978-0-9708062-8-4>, Krippendorff (2019) <doi:10.4135/9781071878781>). Estimation of energy consumption and CO2 emissions during model training is done with the 'python' library 'codecarbon'. Finally, all objects created with this package allow to share trained AI models with other people.

  • Maintainer: Berding Florian
  • License: GPL-3
  • Last published: 2025-08-23