Skip to content

Commit 35a03d0

Browse files
committed
link fix
1 parent 0362d7a commit 35a03d0

File tree

2 files changed

+23
-19
lines changed

2 files changed

+23
-19
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class prevalence of the training set. For this reason, any quantification model
6868
should be tested across many samples, even ones characterized by class prevalence
6969
values different or very different from those found in the training set.
7070
QuaPy implements sampling procedures and evaluation protocols that automate this workflow.
71-
See the [documentation](https://hlt-isti.github.io/QuaPy/build/html/) for detailed examples.
71+
See the [documentation](https://hlt-isti.github.io/QuaPy/manuals.html) for detailed examples.
7272

7373
## Features
7474

docs/source/index.md

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ The following script fetches a dataset of tweets, trains, applies, and evaluates
2525
```python
2626
import quapy as qp
2727

28-
dataset = qp.datasets.fetch_UCIBinaryDataset("yeast")
29-
training, test = dataset.train_test
28+
training, test = qp.datasets.fetch_UCIBinaryDataset("yeast").train_test
3029

3130
# create an "Adjusted Classify & Count" quantifier
3231
model = qp.method.aggregative.ACC()
33-
model.fit(training)
32+
Xtr, ytr = training.Xy
33+
model.fit(Xtr, ytr)
3434

35-
estim_prevalence = model.quantify(test.X)
36-
true_prevalence = test.prevalence()
35+
estim_prevalence = model.predict(test.X)
36+
true_prevalence = test.prevalence()
3737

3838
error = qp.error.mae(true_prevalence, estim_prevalence)
3939
print(f'Mean Absolute Error (MAE)={error:.3f}')
@@ -59,19 +59,19 @@ API <quapy>
5959

6060
## Features
6161

62-
- Implementation of many popular quantification methods (Classify-&-Count and its variants, Expectation Maximization, quantification methods based on structured output learning, HDy, QuaNet, quantification ensembles, among others).
63-
- Versatile functionality for performing evaluation based on sampling generation protocols (e.g., APP, NPP, etc.).
64-
- Implementation of most commonly used evaluation metrics (e.g., AE, RAE, NAE, NRAE, SE, KLD, NKLD, etc.).
65-
- Datasets frequently used in quantification (textual and numeric), including:
66-
- 32 UCI Machine Learning binary datasets.
67-
- 5 UCI Machine Learning multiclass datasets (new in v0.1.8!).
68-
- 11 Twitter quantification-by-sentiment datasets.
69-
- 3 product reviews quantification-by-sentiment datasets.
70-
- 4 tasks from LeQua competition (new in v0.1.7!)
71-
- IFCB dataset of plankton water samples (new in v0.1.8!).
72-
- Native support for binary and single-label multiclass quantification scenarios.
73-
- Model selection functionality that minimizes quantification-oriented loss functions.
74-
- Visualization tools for analysing the experimental results.
62+
* Implementation of many popular quantification methods (Classify-&-Count and its variants, Expectation Maximization,
63+
quantification methods based on structured output learning, HDy, QuaNet, quantification ensembles, among others).
64+
* Versatile functionality for performing evaluation based on sampling generation protocols (e.g., APP, NPP, etc.).
65+
* Implementation of most commonly used evaluation metrics (e.g., AE, RAE, NAE, NRAE, SE, KLD, NKLD, etc.).
66+
* Datasets frequently used in quantification (textual and numeric), including:
67+
* 32 UCI Machine Learning datasets.
68+
* 11 Twitter quantification-by-sentiment datasets.
69+
* 3 product reviews quantification-by-sentiment datasets.
70+
* 4 tasks from LeQua 2022 competition and 4 tasks from LeQua 2024 competition
71+
* IFCB for Plancton quantification
72+
* Native support for binary and single-label multiclass quantification scenarios.
73+
* Model selection functionality that minimizes quantification-oriented loss functions.
74+
* Visualization tools for analysing the experimental results.
7575

7676
## Citing QuaPy
7777

@@ -97,3 +97,7 @@ In case you want to contribute improvements to quapy, please generate pull reque
9797
:width: 250px
9898
:alt: SoBigData++
9999
```
100+
101+
This work has been supported by the QuaDaSh project
102+
_"Finanziato dall’Unione europea---Next Generation EU,
103+
Missione 4 Componente 2 CUP B53D23026250001"_.

0 commit comments

Comments
 (0)