Expose maketitle by just using \input #92

Merged
nuluh merged 9 commits from latex/91-bug-expose-maketitle into main 2025-06-03 13:09:13 +00:00
nuluh commented 2025-06-03 13:02:26 +00:00 (Migrated from github.com)

This pull request includes significant updates to the code/notebooks/stft.ipynb file to refactor and simplify machine learning model training and evaluation, as well as enhancements to the LaTeX files for improved multilingual support and document structure. The changes streamline the codebase and improve maintainability while adding new functionality.

Refactoring and Simplification of Code (code/notebooks/stft.ipynb):

  1. Refactored Machine Learning Model Training:

    • Introduced a reusable function train_and_evaluate_model to encapsulate model training and evaluation logic, replacing repetitive code for multiple classifiers.
    • Organized models into dictionaries (models_sensor1 and models_sensor2) for streamlined iteration and evaluation.
  2. Improved Visualization:

    • Added color mapping (cmap="jet") and normalization (vmax=0.03, vmin=0.0) to the STFT magnitude plots, enhancing clarity and interpretability.
    • Refactored plotting logic into functions (prepare_plot_data and plot_accuracies) for cleaner and more modular visualization of model accuracies.

Enhancements to LaTeX Files:

  1. Multilingual Glossary and Acronyms:

    • Added new commands (\addterm, \addacronym) to support bilingual entries in Slovene and English, enabling better localization of terms and acronyms.
  2. Document Structure Updates:

    • Refactored \maketitle and related sections, moving them to separate files (frontmatter/maketitle and frontmatter/maketitle_secondary) for modularity.
    • Adjusted bibliography settings to use APA style with Indonesian language support, customizing terms like "et al." to "dkk." and "pp." to "hlm." for localization.
  3. Removed Redundant Metadata Commands:

    • Deleted unused metadata commands from latex/thesis.cls to simplify the class definition. [1] [2]
This pull request includes significant updates to the `code/notebooks/stft.ipynb` file to refactor and simplify machine learning model training and evaluation, as well as enhancements to the LaTeX files for improved multilingual support and document structure. The changes streamline the codebase and improve maintainability while adding new functionality. ### Refactoring and Simplification of Code (`code/notebooks/stft.ipynb`): 1. **Refactored Machine Learning Model Training**: - Introduced a reusable function `train_and_evaluate_model` to encapsulate model training and evaluation logic, replacing repetitive code for multiple classifiers. - Organized models into dictionaries (`models_sensor1` and `models_sensor2`) for streamlined iteration and evaluation. 2. **Improved Visualization**: - Added color mapping (`cmap="jet"`) and normalization (`vmax=0.03`, `vmin=0.0`) to the STFT magnitude plots, enhancing clarity and interpretability. - Refactored plotting logic into functions (`prepare_plot_data` and `plot_accuracies`) for cleaner and more modular visualization of model accuracies. ### Enhancements to LaTeX Files: 1. **Multilingual Glossary and Acronyms**: - Added new commands (`\addterm`, `\addacronym`) to support bilingual entries in Slovene and English, enabling better localization of terms and acronyms. 2. **Document Structure Updates**: - Refactored `\maketitle` and related sections, moving them to separate files (`frontmatter/maketitle` and `frontmatter/maketitle_secondary`) for modularity. - Adjusted bibliography settings to use APA style with Indonesian language support, customizing terms like "et al." to "dkk." and "pp." to "hlm." for localization. 3. **Removed Redundant Metadata Commands**: - Deleted unused metadata commands from `latex/thesis.cls` to simplify the class definition. [[1]](diffhunk://#diff-ba9b82188cdb4942c7912b21fe08aea9ba58defe8045ad57520319a803e8e173L59-L60) [[2]](diffhunk://#diff-ba9b82188cdb4942c7912b21fe08aea9ba58defe8045ad57520319a803e8e173L115-L117)
Sign in to join this conversation.