Skip to content

Commit

Permalink
Changes to confirm with CRAN requirements.
Browse files Browse the repository at this point in the history
  • Loading branch information
FBerding committed Feb 17, 2024
1 parent 46eaada commit 0e77993
Show file tree
Hide file tree
Showing 27 changed files with 42 additions and 41 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ cran-comments.md
^doc$
^Meta$
gui_aife_studio.Rmd
classification_tasks.Rmd
intel_power_gadget_log.csv
reference
18 changes: 9 additions & 9 deletions .Rhistory
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
#Callback-------------------------------------------------------------------
if use_callback==True:
if bacc_val>best_bacc:
if trace>=1:
print("Val Balanced Accuracy increased from {:.4f} to {:.4f}".format(best_bacc,bacc_val))
print("Save checkpoint to {}".format(filepath))
#torch.save(model.state_dict(),filepath)
safetensors.torch.save_model(model=model,filename=filepath)
best_bacc=bacc_val
#Finalize--------------------------------------------------------------------
if use_callback==True:
if trace>=1:
Expand Down Expand Up @@ -510,3 +501,12 @@ install.packages(c("BH", "brew", "brio", "cli", "coda", "commonmark", "curl", "d
install.packages(c("BH", "brew", "brio", "cli", "coda", "commonmark", "curl", "data.table", "DBI", "desc", "digest", "DT", "e1071", "fansi", "float", "FNN", "glue", "htmlwidgets", "httpuv", "igraph", "ISOcodes", "later", "LiblineaR", "listenv", "lpSolve", "markdown", "Matrix", "MatrixExtra", "mgcv", "MplusAutomation", "pak", "parallelly", "pkgbuild", "pkgload", "processx", "progress", "ps", "psych", "ragg", "Rcpp", "RcppArmadillo", "RCurl", "readODS", "readr", "reticulate", "rJava", "roxygen2", "s2", "sass", "sf", "shinyWidgets", "stringi", "survival", "tensorflow", "tfruns", "tidyr", "topicmodels", "vroom", "withr", "xfun", "yaml", "zip"))
install.packages("brew")
install.packages(c("BH", "brio", "cli", "coda", "commonmark", "curl", "data.table", "DBI", "desc", "digest", "DT", "e1071", "fansi", "float", "FNN", "glue", "htmlwidgets", "httpuv", "igraph", "ISOcodes", "later", "LiblineaR", "listenv", "lpSolve", "markdown", "Matrix", "MatrixExtra", "mgcv", "MplusAutomation", "pak", "parallelly", "pkgbuild", "pkgload", "processx", "progress", "ps", "psych", "ragg", "Rcpp", "RcppArmadillo", "RCurl", "readODS", "readr", "reticulate", "rJava", "roxygen2", "s2", "sass", "sf", "shinyWidgets", "stringi", "survival", "tensorflow", "tfruns", "tidyr", "topicmodels", "vroom", "withr", "xfun", "yaml", "zip"))
devtools::document()
devtools::build_site()
devtools::build_site()
devtools::build_site()
devtools::check_win_release()
devtools::check_win_devel()
devtools::check_win_devel()
devtools::check_win_devel()
devtools::check_win_devel()
7 changes: 3 additions & 4 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ interface.

*Aifeducation Studio* allows users to easily develop, train,
apply, document, and analyse AI models without any coding skills. See
the corresponding vignette for more details: [02a Classification Tasks](https://fberding.github.io/aifeducation/articles/gui_aife_studio.html).
the corresponding vignette for more details: [02a Using Aifeducation Studio](https://fberding.github.io/aifeducation/articles/gui_aife_studio.html).

## Sustainability

Expand Down Expand Up @@ -295,9 +295,8 @@ you can find a detailed guide on how to document and share your models.

- Installation and configuration of the package: [01 Get
Started](https://fberding.github.io/aifeducation/articles/aifeducation.html).
- Introduction graphical user interface *Aifeducation Studio*: [02a
Classification
Tasks](https://fberding.github.io/aifeducation/articles/gui_aife_studio.html).
- Introduction graphical user interface *Aifeducation Studio*:
[02a Using Aifeducation Studio](https://fberding.github.io/aifeducation/articles/gui_aife_studio.html).
- A short introduction into the package with examples for
classification tasks: [02b Classification
Tasks](https://fberding.github.io/aifeducation/articles/classification_tasks.html).
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ Studio</figcaption>

*Aifeducation Studio* allows users to easily develop, train, apply,
document, and analyse AI models without any coding skills. See the
corresponding vignette for more details: [02a Classification
Tasks](https://fberding.github.io/aifeducation/articles/gui_aife_studio.html).
corresponding vignette for more details: [02a Using Aifeducation
Studio](https://fberding.github.io/aifeducation/articles/gui_aife_studio.html).

## Sustainability

Expand Down Expand Up @@ -285,8 +285,8 @@ you can find a detailed guide on how to document and share your models.
- Installation and configuration of the package: [01 Get
Started](https://fberding.github.io/aifeducation/articles/aifeducation.html).
- Introduction graphical user interface *Aifeducation Studio*: [02a
Classification
Tasks](https://fberding.github.io/aifeducation/articles/gui_aife_studio.html).
Using Aifeducation
Studio](https://fberding.github.io/aifeducation/articles/gui_aife_studio.html).
- A short introduction into the package with examples for classification
tasks: [02b Classification
Tasks](https://fberding.github.io/aifeducation/articles/classification_tasks.html).
Expand Down
3 changes: 2 additions & 1 deletion docs/articles/aifeducation.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions docs/articles/classification_tasks.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docs/articles/gui_aife_studio.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
4 changes: 2 additions & 2 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ articles:
classification_tasks: classification_tasks.html
gui_aife_studio: gui_aife_studio.html
sharing_and_publishing: sharing_and_publishing.html
last_built: 2024-02-16T08:08Z
last_built: 2024-02-17T19:56Z

2 changes: 1 addition & 1 deletion docs/search.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion vignettes/aifeducation.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ A guide how to use the graphical user interface can be found in vignette

A short introduction into the
package with examples for classification tasks can be found in vignette
[02b classification tasks](classification_tasks.html).
[02b classification tasks](https://fberding.github.io/aifeducation/articles/classification_tasks.html).

Documenting and sharing your work is described in vignette
[03 sharing and using trained AI/models](sharing_and_publishing.html)
Expand Down
12 changes: 6 additions & 6 deletions vignettes/classification_tasks.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ a research area, concepts are not unified. Figure 1 illustrates this
package's understanding.

![Figure 1: Understanding of Central
Concepts](classif_fig_01.png){width="100%"}
Concepts](img_articles/classif_fig_01.png){width="100%"}

Since *aifeducation* looks at the application of AI for classification
tasks from the perspective of the empirical method of content analysis,
Expand All @@ -98,7 +98,7 @@ to train an AI to classify text in line with supervised machine learning
principles.

![Figure 2: Basic Structure of Supervised Machine
Learning](classif_fig_02.png){width="100%"}
Learning](img_articles/classif_fig_02.png){width="100%"}

By providing AI with both the textual data as input data and the
corresponding information about the class as target data, AI can learn
Expand All @@ -114,7 +114,7 @@ necessary. Figure 3 provides an overview integrating the functions and
objects of *aifeducation*.

![Figure 3: Overview of the Steps to Perform a
Classification](classif_fig_03.png){width="100%"}
Classification](img_articles/classif_fig_03.png){width="100%"}

The first step is to transform raw texts into a form computers can use.
That is, the raw texts must be transformed into numbers. In modern
Expand Down Expand Up @@ -988,7 +988,7 @@ With the other parameters you decide about the structure of your
classifier. Figure 4 illustrates this.

![Figure 4: Overview of Possible Structure of a
Classifier](classif_fig_04.png){width="100%"}
Classifier](img_articles/classif_fig_04.png){width="100%"}

`hidden` takes a vector of integers, determining the number of layers
and the number of neurons. In our example, there are no dense layers.
Expand Down Expand Up @@ -1186,7 +1186,7 @@ Figure 5 illustrates the training loop for the cases that all three
options are set to `TRUE`.

![Figure 5: Overview of the Steps to Perform a
Classification](classif_fig_05.png){width="100%"}
Classification](img_articles/classif_fig_05.png){width="100%"}

The example above applies the algorithm proposed by Cascante-Bonilla et
al. (2020). After training the classifier on the labeled data, the
Expand Down Expand Up @@ -1281,7 +1281,7 @@ library(iotarelr)
iotarelr::plot_iota2_alluvial(test_classifier$reliability$iota_object_end_free)
```

![Figure 6: Coding Stream of the Classifier](classif_fig_06.png){width="100%"}
![Figure 6: Coding Stream of the Classifier](img_articles/classif_fig_06.png){width="100%"}

Here you can see that a small number of negative reviews is treated
as a good review while a larger number of positive reviews is
Expand Down
6 changes: 3 additions & 3 deletions vignettes/gui_aife_studio.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ disciplines using different, sometimes overlapping concepts. Even within
a single research area, concepts are not unified. Figure 1 illustrates
this package's understanding.

![Figure 1: Understanding of Central Concepts](classif_fig_01.png){width="100%"}
![Figure 1: Understanding of Central Concepts](img_articles/classif_fig_01.png){width="100%"}

Since *aifeducation* looks at the application of AI for classification
tasks from the perspective of the empirical method of content analysis,
Expand All @@ -113,7 +113,7 @@ labeled with the correct class. As Figure 2 illustrates, two kinds of
data are necessary to train an AI to classify text in line with
supervised machine learning principles.

![Figure 2: Basic Structure of Supervised Machine Learning](classif_fig_02.png){width="100%"}
![Figure 2: Basic Structure of Supervised Machine Learning](img_articles/classif_fig_02.png){width="100%"}

By providing AI with both the textual data as input data and the
corresponding information about the class as target data, AI can learn
Expand Down Expand Up @@ -147,7 +147,7 @@ target data for training AI to classify a text.
In *aifeducation,* these steps are covered with three different types of
models, as shown in Figure 3.

![Figure 3: Modells Types in aifeducation](classif_model_hierachy.png){width="100%"}
![Figure 3: Modells Types in aifeducation](img_articles/classif_model_hierachy.png){width="100%"}

- **Base Models:** The base models are the models which contain the
capacities to understand natural language. In general, these are
Expand Down
Binary file added vignettes/img_articles/classif_fig_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vignettes/img_articles/classif_fig_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vignettes/img_articles/classif_fig_03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vignettes/img_articles/classif_fig_04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vignettes/img_articles/classif_fig_05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vignettes/img_articles/classif_fig_06.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0e77993

Please sign in to comment.