Skip to content

Commit

Permalink
docs: fix wrong version number
Browse files Browse the repository at this point in the history
  • Loading branch information
f-aguzzi committed Jun 4, 2024
1 parent c6892a9 commit a0eb4e6
Show file tree
Hide file tree
Showing 50 changed files with 21 additions and 1,262 deletions.
14 changes: 12 additions & 2 deletions docs/cookbook_versioned_docs/version-2.0.0/structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ classDiagram

\
\
The classifiers themselves, except `LR`, all inherit from a base class called [`BaseClassifier`](/docs/base/baseclassifier) in the `base` module:
The classifiers themselves all inherit from a base class called [`BaseClassifier`](/docs/base/baseclassifier) in the `base` module:

```mermaid
classDiagram
Expand All @@ -108,6 +108,10 @@ classDiagram
...
}
class LR {
...
}
class PLSDA {
...
}
Expand Down Expand Up @@ -141,7 +145,13 @@ classDiagram
__init__(...)
}
class PCADataModel {
+array_scores: ndarray
__init__(..., array_scores)
}
BaseDataModel *-- LLDFDataModel
BaseDataModel *-- PCADataModel
```

This allows all the classifiers to use the `LLDF` data, or any other type of data as long as it follows the `BaseDataModel` template.
This allows all the classifiers to use the `LLDF` data, dimension-reduced `PCA` data, or any other type of data as long as it follows the `BaseDataModel` template.

This file was deleted.

This file was deleted.

This file was deleted.

26 changes: 0 additions & 26 deletions docs/cookbook_versioned_docs/version-2.1.0/introduction.md

This file was deleted.

44 changes: 0 additions & 44 deletions docs/cookbook_versioned_docs/version-2.1.0/structure.md

This file was deleted.

8 changes: 0 additions & 8 deletions docs/cookbook_versioned_sidebars/version-2.1.0-sidebars.json

This file was deleted.

1 change: 0 additions & 1 deletion docs/cookbook_versions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
[
"2.1.0",
"2.0.0"
]
10 changes: 5 additions & 5 deletions docs/versioned_docs/version-2.0.0/base/baseclassifier.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sidebar_position: 1
---

# KNN class
# BaseClassifier class

A base class from which all classifiers inherit.

Expand All @@ -21,13 +21,13 @@ BaseClassifier(settings: BaseSettings, data: BaseDataModel)
## Fields

- `settings`: object of type [`KNNSettings`](/tesi/docs/knn/knnsettings). Contains the settings for
the `KNN` object.
the `BaseClassifier` object.
- `data`: object of type [`BaseDataModel`](../base/basedatamodel.md). Contains the data to be analyzed.
- `model`: a `sklearn` model from `scikit-learn`. Defaults to `None`.

## Methods

- `knn(self)`: trains the k-Neighbors Analysis model
- `predict(self, x_data)`: performs LDA prediction once the model is trained.
- `import_model(import_path: str)`: loads a model from file
- `export_model(export_path: str)`: exports a model to file
- *raises*:
- `RuntimeError("The kNN model is not trained yet!")` if the `KNN` model hasn't been trained yet
- `RuntimeError("You haven't trained the model yet! You cannot export it now.")` when trying to export an untrained model
4 changes: 2 additions & 2 deletions docs/versioned_docs/version-2.0.0/lldf/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ classDiagram
class LLDF {
+LLDFSettings settings
+Table[] tables
+LLDFModel | None fused_data
+LLDFDataModel | None fused_data
lldf()
-_snv()
+export_data(export_path: str)
__init__(settings, tables[])
}
class LLDFModel {
class LLDFDataModel {
+x_data: pd.DataFrame
+x_train: pd.DataFrame
+y: np.ndarray
Expand Down
3 changes: 2 additions & 1 deletion docs/versioned_docs/version-2.0.0/lldf/lldfmodel.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ It inherits from the [`BaseDataModel`](../base/basedatamodel.md).
## Syntax

```python
LLDFModel(x_data: pd.DataFrame, x_train: pd.DataFrame, y: pd.DataFrame)
LLDFModel(x_data: pd.DataFrame, x_train: pd.DataFrame, y: np.ndarray)
```

## Fields and constructor parameters

The first two are `Pandas` `DataFrame` objects:
- `x_data`
- `x_train`

The last is a `NumPy` `ndarray`:
- `y`

8 changes: 0 additions & 8 deletions docs/versioned_docs/version-2.1.0/base/_category_.json

This file was deleted.

33 changes: 0 additions & 33 deletions docs/versioned_docs/version-2.1.0/base/baseclassifier.md

This file was deleted.

21 changes: 0 additions & 21 deletions docs/versioned_docs/version-2.1.0/base/basedatamodel.md

This file was deleted.

21 changes: 0 additions & 21 deletions docs/versioned_docs/version-2.1.0/base/basesettings.md

This file was deleted.

31 changes: 0 additions & 31 deletions docs/versioned_docs/version-2.1.0/complete-workflow.md

This file was deleted.

8 changes: 0 additions & 8 deletions docs/versioned_docs/version-2.1.0/knn/_category_.json

This file was deleted.

47 changes: 0 additions & 47 deletions docs/versioned_docs/version-2.1.0/knn/knn.md

This file was deleted.

Loading

0 comments on commit a0eb4e6

Please sign in to comment.