---
# System prepended metadata

title: '`libact` Upgrade Mannual & Log'
tags: [CLLab, libact]

---

# `libact` Upgrade Mannual & Log

###### tags: `libact` `CLLab`

## Docker (recommend)

```shell=
docker run -it --rm --name "libact" louisvuitton/libact:20py39-dev /bin/bash
```

## pylint
```shell=
python3.9 -m pylint --version
```

```log=
pylint 2.10.1
astroid 2.7.2
Python 3.9.6 (default, Jul  3 2021, 16:40:50) 
[GCC 9.3.0]
```

```shell=
python3.9 -m pylint libact
```
```log=
...

Messages by category
--------------------

+-----------+-------+---------+-----------+
|type       |number |previous |difference |
+===========+=======+=========+===========+
|convention |392    |392      |=          |
+-----------+-------+---------+-----------+
|refactor   |68     |68       |=          |
+-----------+-------+---------+-----------+
|warning    |154    |152      |+2.00      |
+-----------+-------+---------+-----------+
|error      |2      |2        |=          |
+-----------+-------+---------+-----------+



% errors / warnings by module
-----------------------------

+--------------------------------------------------------------------------+------+--------+---------+-----------+
|module                                                                    |error |warning |refactor |convention |
+==========================================================================+======+========+=========+===========+
|libact.query_strategies.density_weighted_uncertainty_sampling             |50.00 |13.64   |5.88     |4.34       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.query_strategies.multilabel.cost_sensitive_reference_pair_encoding |50.00 |5.84    |1.47     |4.34       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.base.interfaces                                                    |0.00  |9.09    |0.00     |0.26       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.query_strategies.density_weighted_meta                             |0.00  |7.14    |1.47     |1.53       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.query_strategies.multilabel.multilabel_with_auxiliary_learner      |0.00  |7.14    |1.47     |0.51       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.query_strategies.multiclass.mdsp                                   |0.00  |5.84    |1.47     |34.69      |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.models.multilabel.binary_relevance                                 |0.00  |5.84    |1.47     |1.28       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.query_strategies.active_learning_by_learning                       |0.00  |3.25    |13.24    |0.26       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.base.tests.test_dataset                                            |0.00  |2.60    |30.88    |4.34       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.query_strategies.variance_reduction                                |0.00  |2.60    |2.94     |1.53       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.query_strategies.uncertainty_sampling                              |0.00  |2.60    |2.94     |0.51       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.query_strategies.multilabel.maximum_margin_reduction               |0.00  |2.60    |1.47     |1.02       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.query_strategies.multilabel.adaptive_active_learning               |0.00  |2.60    |1.47     |0.77       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.query_strategies.multiclass.active_learning_with_cost_embedding    |0.00  |2.60    |1.47     |0.26       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.query_strategies.multilabel.binary_minimization                    |0.00  |2.60    |1.47     |0.00       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.query_strategies.tests.test_uncertainty_sampling                   |0.00  |2.60    |0.00     |2.04       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.base.dataset                                                       |0.00  |1.95    |1.47     |2.30       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.query_strategies.multilabel.tests.test_multilabel_realdata         |0.00  |1.95    |0.00     |2.55       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.models.multilabel.dummy_clf                                        |0.00  |1.95    |0.00     |1.28       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.query_strategies.multiclass.hierarchical_sampling                  |0.00  |1.30    |8.82     |1.28       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.query_strategies.query_by_committee                                |0.00  |1.30    |5.88     |0.77       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.query_strategies.hintsvm                                           |0.00  |1.30    |4.41     |0.51       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.models.svm                                                         |0.00  |1.30    |1.47     |1.02       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.utils.__init__                                                     |0.00  |1.30    |1.47     |0.51       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.query_strategies.random_sampling                                   |0.00  |1.30    |1.47     |0.00       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.query_strategies.tests.test_density_weighted_meta                  |0.00  |1.30    |0.00     |0.77       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.models.sklearn_adapter                                             |0.00  |1.30    |0.00     |0.51       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.labelers.ideal_labeler                                             |0.00  |1.30    |0.00     |0.26       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.query_strategies.multiclass.tests.test_iris                        |0.00  |0.65    |0.00     |2.55       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.models.multilabel.tests.test_binary_relevance                      |0.00  |0.65    |0.00     |2.30       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.query_strategies.tests.test_hintsvm                                |0.00  |0.65    |0.00     |0.77       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.models.perceptron                                                  |0.00  |0.65    |0.00     |0.00       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.labelers.interactive_labeler                                       |0.00  |0.65    |0.00     |0.00       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.labelers.__init__                                                  |0.00  |0.65    |0.00     |0.00       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.query_strategies.quire                                             |0.00  |0.00    |1.47     |3.83       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.utils.tests.test_criteria                                          |0.00  |0.00    |1.47     |1.53       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.query_strategies.multiclass.expected_error_reduction               |0.00  |0.00    |1.47     |0.51       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.models.logistic_regression                                         |0.00  |0.00    |1.47     |0.26       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.query_strategies.tests.test_realdata                               |0.00  |0.00    |0.00     |4.85       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.query_strategies.multiclass.tests.test_hierarchical_sampling       |0.00  |0.00    |0.00     |2.81       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.query_strategies.__init__                                          |0.00  |0.00    |0.00     |2.04       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.models.tests.test_sklearn_adapter                                  |0.00  |0.00    |0.00     |2.04       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.utils.multilabel.__init__                                          |0.00  |0.00    |0.00     |1.53       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.models.tests.test_logistic_regression                              |0.00  |0.00    |0.00     |1.28       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.models.tests.test_svm                                              |0.00  |0.00    |0.00     |1.02       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.models.tests.test_perceptron                                       |0.00  |0.00    |0.00     |1.02       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.query_strategies.tests.test_quire                                  |0.00  |0.00    |0.00     |0.77       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.query_strategies.multiclass.__init__                               |0.00  |0.00    |0.00     |0.77       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.query_strategies.tests.test_variance_reduction                     |0.00  |0.00    |0.00     |0.51       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+
|libact.models.multilabel.__init__                                         |0.00  |0.00    |0.00     |0.26       |
+--------------------------------------------------------------------------+------+--------+---------+-----------+



Messages
--------

+-------------------------------+------------+
|message id                     |occurrences |
+===============================+============+
|unexpected-line-ending-format  |128         |
+-------------------------------+------------+
|invalid-name                   |112         |
+-------------------------------+------------+
|missing-function-docstring     |77          |
+-------------------------------+------------+
|unused-import                  |35          |
+-------------------------------+------------+
|anomalous-backslash-in-string  |24          |
+-------------------------------+------------+
|duplicate-code                 |20          |
+-------------------------------+------------+
|super-with-arguments           |17          |
+-------------------------------+------------+
|redefined-builtin              |17          |
+-------------------------------+------------+
|missing-class-docstring        |16          |
+-------------------------------+------------+
|attribute-defined-outside-init |16          |
+-------------------------------+------------+
|wrong-import-position          |12          |
+-------------------------------+------------+
|unused-variable                |11          |
+-------------------------------+------------+
|unused-argument                |11          |
+-------------------------------+------------+
|missing-module-docstring       |11          |
+-------------------------------+------------+
|unnecessary-pass               |10          |
+-------------------------------+------------+
|no-else-return                 |10          |
+-------------------------------+------------+
|fixme                          |7           |
+-------------------------------+------------+
|wrong-import-order             |5           |
+-------------------------------+------------+
|trailing-whitespace            |5           |
+-------------------------------+------------+
|arguments-differ               |5           |
+-------------------------------+------------+
|super-init-not-called          |4           |
+-------------------------------+------------+
|missing-final-newline          |4           |
+-------------------------------+------------+
|useless-object-inheritance     |3           |
+-------------------------------+------------+
|unbalanced-tuple-unpacking     |3           |
+-------------------------------+------------+
|trailing-newlines              |3           |
+-------------------------------+------------+
|singleton-comparison           |3           |
+-------------------------------+------------+
|no-self-use                    |3           |
+-------------------------------+------------+
|no-else-raise                  |3           |
+-------------------------------+------------+
|multiple-statements            |3           |
+-------------------------------+------------+
|line-too-long                  |3           |
+-------------------------------+------------+
|abstract-method                |3           |
+-------------------------------+------------+
|unnecessary-comprehension      |2           |
+-------------------------------+------------+
|ungrouped-imports              |2           |
+-------------------------------+------------+
|inconsistent-return-statements |2           |
+-------------------------------+------------+
|import-outside-toplevel        |2           |
+-------------------------------+------------+
|deprecated-method              |2           |
+-------------------------------+------------+
|dangerous-default-value        |2           |
+-------------------------------+------------+
|consider-using-enumerate       |2           |
+-------------------------------+------------+
|useless-return                 |1           |
+-------------------------------+------------+
|use-list-literal               |1           |
+-------------------------------+------------+
|unneeded-not                   |1           |
+-------------------------------+------------+
|too-many-instance-attributes   |1           |
+-------------------------------+------------+
|too-many-function-args         |1           |
+-------------------------------+------------+
|too-many-branches              |1           |
+-------------------------------+------------+
|stop-iteration-return          |1           |
+-------------------------------+------------+
|self-assigning-variable        |1           |
+-------------------------------+------------+
|raise-missing-from             |1           |
+-------------------------------+------------+
|protected-access               |1           |
+-------------------------------+------------+
|invalid-unary-operand-type     |1           |
+-------------------------------+------------+
|empty-docstring                |1           |
+-------------------------------+------------+
|consider-using-with            |1           |
+-------------------------------+------------+
|consider-using-in              |1           |
+-------------------------------+------------+
|consider-using-dict-items      |1           |
+-------------------------------+------------+
|consider-iterating-dictionary  |1           |
+-------------------------------+------------+
|chained-comparison             |1           |
+-------------------------------+------------+
|arguments-renamed              |1           |
+-------------------------------+------------+




------------------------------------------------------------------
Your code has been rated at 7.16/10 (previous run: 7.17/10, -0.01)

```
