diff --git a/aisp/csa/_ai_recognition_sys.py b/aisp/csa/_ai_recognition_sys.py index 85a2d07..d221d2a 100644 --- a/aisp/csa/_ai_recognition_sys.py +++ b/aisp/csa/_ai_recognition_sys.py @@ -41,7 +41,7 @@ class AIRS(BaseClassifier): ---------- n_resources : float, default=10 Total amount of available resources. - rate_clonal : float, default=10 + rate_clonal : int, default=10 Maximum number of possible clones of a class. This quantity is multiplied by ( cell_stimulus * rate_hypermutation) to define the number of clones. rate_mc_init : float, default=0.2 diff --git a/aisp/nsa/_negative_selection.py b/aisp/nsa/_negative_selection.py index adab155..331b8cd 100644 --- a/aisp/nsa/_negative_selection.py +++ b/aisp/nsa/_negative_selection.py @@ -179,7 +179,7 @@ def fit( verbose: bool = True, ) -> RNSA: """ - Perform training according to X and y, using the negative selection method (NegativeSelect). + Perform training according to X and y, using the negative selection method (RNSA). Parameters ---------- diff --git a/docs/en/api/csa/airs.md b/docs/en/api/csa/airs.md index 3c61e17..1a0dbc0 100644 --- a/docs/en/api/csa/airs.md +++ b/docs/en/api/csa/airs.md @@ -86,7 +86,7 @@ Output: | Name | Type | Default | Description | |-----------------------------|---------|:-------------:|---------------------------------------------------------------------------------------------------------------------------------------------------| | `n_resources` | `float` | `10` | Total amount of available resources. | -| `rate_clonal` | `float` | `10` | Maximum number of possible clones of a class. This quantity is multiplied by (cell_stimulus * rate_hypermutation) to define the number of clones. | +| `rate_clonal` | `int` | `10` | Maximum number of possible clones of a class. This quantity is multiplied by (cell_stimulus * rate_hypermutation) to define the number of clones. | | `rate_mc_init` | `float` | `0.2` | Percentage of samples used to initialize memory cells. | | `rate_hypermutation` | `float` | `0.75` | The rate of mutated clones derived from rate_clonal as a scalar factor. | | `affinity_threshold_scalar` | `float` | `0.75` | Normalized affinity threshold. | diff --git a/docs/en/api/nsa/rnsa.md b/docs/en/api/nsa/rnsa.md index 644ada4..9d42e82 100644 --- a/docs/en/api/nsa/rnsa.md +++ b/docs/en/api/nsa/rnsa.md @@ -121,7 +121,7 @@ print(y_pred) | `algorithm` | `{"default-NSA", "V-detector"}` | `'default-NSA'` | Set the algorithm version | | `non_self_label` | `str` | `'non-self'` | This variable stores the label that will be assigned when the data has only one output class, and the sample is classified as not belonging to that class. | | `cell_bounds` | `bool` | `False` | If set to ``True``, this option limits the generation of detectors to the space within the plane between 0 and 1. This means that any detector whose radius exceeds this limit is discarded, this variable is only used in the ``V-detector`` algorithm. | -| `p` | `bool` | `2.0` | This parameter stores the value of `p` used in the Minkowski distance. | +| `p` | `float` | `2.0` | This parameter stores the value of `p` used in the Minkowski distance. | ## Attributes diff --git a/docs/pt-br/api/csa/airs.md b/docs/pt-br/api/csa/airs.md index c1868e0..eead58e 100644 --- a/docs/pt-br/api/csa/airs.md +++ b/docs/pt-br/api/csa/airs.md @@ -86,7 +86,7 @@ Output: | Nome | Tipo | Default | Descrição | |-----------------------------|---------|:-------------:|----------------------------------------------------------------------------------------------------------------------------------------------------------------| | `n_resources` | `float` | `10` | Quantidade total de recursos disponíveis. | -| `rate_clonal` | `float` | `10` | Número máximo de clones possíveis de uma classe. Esta quantidade é multiplicada por (estímulo da célula * rate_hypermutation) para definir o número de clones. | +| `rate_clonal` | `int` | `10` | Número máximo de clones possíveis de uma classe. Esta quantidade é multiplicada por (estímulo da célula * rate_hypermutation) para definir o número de clones. | | `rate_mc_init` | `float` | `0.2` | Porcentagem de amostras usadas para inicializar a população de células de memória. | | `rate_hypermutation` | `float` | `0.75` | Taxa de clones mutados derivada de rate_clonal como um fator escalar. | | `affinity_threshold_scalar` | `float` | `0.75` | Limiar de afinidade normalizado. | diff --git a/docs/pt-br/api/nsa/rnsa.md b/docs/pt-br/api/nsa/rnsa.md index a488f29..0bec9fd 100644 --- a/docs/pt-br/api/nsa/rnsa.md +++ b/docs/pt-br/api/nsa/rnsa.md @@ -121,7 +121,7 @@ print(y_pred) | `algorithm` | `{"default-NSA", "V-detector"}` | `'default-NSA'` | Define a versão do algoritmo. | | `non_self_label` | `str` | `'non-self'` | Rótulo atribuído quando há apenas uma classe de saída e a amostra não pertence a essa classe. | | `cell_bounds` | `bool` | `False` | Se definido como True, esta opção limita a geração dos detectores ao espaço do plano compreendido entre 0 e 1. Isso significa que qualquer detector cujo raio ultrapasse esse limite é descartado, e esta variável é usada exclusivamente no algoritmo `V-detector`. | -| `p` | `bool` | `2.0` | Valor de `p` utilizado na distância de Minkowski. | +| `p` | `float` | `2.0` | Valor de `p` utilizado na distância de Minkowski. | ## Atributos