Package: aifeducation 1.0.2

aifeducation: Artificial Intelligence for Education

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. Bunkhumpornpat et al. (2012) <doi:10.1007/s10489-011-0287-y>). 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.

Authors:Berding Florian [aut, cre], Tykhonova Yuliia [aut], Pargmann Julia [ctb], Leube Anna [ctb], Riebenbauer Elisabeth [ctb], Rebmann Karin [ctb], Slopinski Andreas [ctb]

aifeducation_1.0.2.tar.gz
aifeducation_1.0.2.zip(r-4.5)aifeducation_1.0.2.zip(r-4.4)aifeducation_1.0.2.zip(r-4.3)
aifeducation_1.0.2.tgz(r-4.5-x86_64)aifeducation_1.0.2.tgz(r-4.5-arm64)aifeducation_1.0.2.tgz(r-4.4-x86_64)aifeducation_1.0.2.tgz(r-4.4-arm64)aifeducation_1.0.2.tgz(r-4.3-x86_64)aifeducation_1.0.1.tgz(r-4.3-arm64)
aifeducation_1.0.2.tar.gz(r-4.5-noble)aifeducation_1.0.2.tar.gz(r-4.4-noble)
aifeducation_1.0.2.tgz(r-4.4-emscripten)aifeducation_1.0.2.tgz(r-4.3-emscripten)
aifeducation.pdf |aifeducation.html
aifeducation/json (API)
NEWS

# Install 'aifeducation' in R:
install.packages('aifeducation', repos = c('https://fberding.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/fberding/aifeducation/issues

Pkgdown site:https://fberding.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

cpp

4.60 score 8 scripts 394 downloads 54 exports 60 dependencies

Last updated 15 days agofrom:60f4c3a817. Checks:5 OK, 1 FAILURE, 5 NOTE. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKFeb 05 2025
R-4.5-win-x86_64OKFeb 05 2025
R-4.5-mac-x86_64OKFeb 05 2025
R-4.5-mac-aarch64OKFeb 05 2025
R-4.5-linux-x86_64OKFeb 05 2025
R-4.4-win-x86_64NOTEFeb 05 2025
R-4.4-mac-x86_64NOTEFeb 05 2025
R-4.4-mac-aarch64NOTEFeb 05 2025
R-4.3-win-x86_64NOTEFeb 05 2025
R-4.3-mac-x86_64NOTEFeb 05 2025
R-4.3-mac-aarch64OUTDATEDJan 25 2025

Exports:.AIFEBaseTransformer.AIFEBertTransformer.AIFEDebertaTransformer.AIFEFunnelTransformer.AIFELongformerTransformer.AIFEMpnetTransformer.AIFERobertaTransformeraife_transformer_makerAIFEBaseModelAIFETransformerMakerAIFETrTypeauto_n_corescalc_standard_classification_measurescheck_aif_py_modulesclean_pytorch_log_transformerscohens_kappacreate_dircreate_synthetic_units_from_matrixDataManagerClassifierEmbeddedTextfleiss_kappagenerate_idget_alpha_3_codesget_coder_metricsget_file_extensionget_n_chunksget_py_package_versionsget_synthetic_cases_from_matrixinstall_aifeducationinstall_py_modulesis.null_or_nakendalls_wkripp_alphaLargeDataSetBaseLargeDataSetForTextLargeDataSetForTextEmbeddingsload_from_disklong_load_target_datamatrix_to_array_coutput_messageprint_messagerun_py_filesave_to_diskset_config_cpu_onlyset_config_gpu_low_memoryset_config_os_environ_loggerset_config_tf_loggerset_transformers_loggerstart_aifeducation_studioTEClassifierProtoNetTEClassifierRegularTEFeatureExtractorTextEmbeddingModelto_categorical_c

Dependencies:clicodetoolscolorspacecpp11dbscandoParalleldplyrfansifarverFNNforeachgenericsggalluvialggplot2gluegridExtragtablehereigraphiotarelrirrCACisobanditeratorsjsonlitelabelinglatticelazyevallifecyclemagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigplyrpngpurrrR6rappdirsRColorBrewerRcppRcppArmadilloRcppTOMLreshape2reticulaterlangrprojrootscalessmotefamilystringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithr

01 Get started

Rendered fromaifeducation.Rmdusingknitr::rmarkdownon Feb 05 2025.

Last update: 2024-12-19
Started: 2023-04-14

Readme and manuals

Help Manual

Help pageTopics
Base 'R6' class for creation and definition of '.AIFE*Transformer-like' classes.AIFEBaseTransformer
Child 'R6' class for creation and training of 'BERT' transformers.AIFEBertTransformer
Child 'R6' class for creation and training of 'DeBERTa-V2' transformers.AIFEDebertaTransformer
Child 'R6' class for creation and training of 'Funnel' transformers.AIFEFunnelTransformer
Child 'R6' class for creation and training of 'Longformer' transformers.AIFELongformerTransformer
Child 'R6' class for creation and training of 'MPNet' transformers.AIFEMpnetTransformer
Child 'R6' class for creation and training of 'RoBERTa' transformers.AIFERobertaTransformer
'R6' object of the 'AIFETransformerMaker' classaife_transformer_maker
Base class for models using neural netsAIFEBaseModel
'R6' class for transformer creationAIFETransformerMaker
Transformer typesAIFETrType
Number of cores for multiple tasksauto_n_cores
Calculate standard classification measurescalc_standard_classification_measures
Check if all necessary python modules are availablecheck_aif_py_modules
Clean pytorch log of transformersclean_pytorch_log_transformers
Calculate Cohen's Kappacohens_kappa
Create directory if not existscreate_dir
Create synthetic unitscreate_synthetic_units_from_matrix
Data manager for classification tasksDataManagerClassifier
Embedded textEmbeddedText
Calculate Fleiss' Kappafleiss_kappa
Generate ID suffix for objectsgenerate_id
Country Alpha 3 Codesget_alpha_3_codes
Calculate reliability measures based on content analysisget_coder_metrics
Get file extensionget_file_extension
Get the number of chunks/sequences for each caseget_n_chunks
Get versions of python componentsget_py_package_versions
Create synthetic cases for balancing training dataget_synthetic_cases_from_matrix
Install aifeducation on a machineinstall_aifeducation
Installing necessary python modules to an environmentinstall_py_modules
Check if NULL or NAis.null_or_na
Calculate Kendall's coefficient of concordance wkendalls_w
Calculate Krippendorff's Alphakripp_alpha
Abstract base class for large data setsLargeDataSetBase
Abstract class for large data sets containing raw textsLargeDataSetForText
Abstract class for large data sets containing text embeddingsLargeDataSetForTextEmbeddings
Loading objects created with 'aifeducation'load_from_disk
Load target data for long running taskslong_load_target_data
Reshape matrix to arraymatrix_to_array_c
Print messageoutput_message
Print message ('message()')print_message
Run python filerun_py_file
Saving objects created with 'aifeducation'save_to_disk
Setting cpu only for 'tensorflow'set_config_cpu_only
Setting gpus' memory usageset_config_gpu_low_memory
Sets the level for logging information in tensorflowset_config_os_environ_logger
Sets the level for logging information in tensorflowset_config_tf_logger
Sets the level for logging information of the 'transformers' libraryset_transformers_logger
Aifeducation Studiostart_aifeducation_studio
Text embedding classifier with a ProtoNetTEClassifierProtoNet
Text embedding classifier with a neural netTEClassifierRegular
Feature extractor for reducing the number for dimensions of text embeddings.TEFeatureExtractor
Text embedding modelTextEmbeddingModel
Transforming classes to one-hot encodingto_categorical_c