Skip to content

Commit

Permalink
🚚 Transformed is the new name of the descriptors.
Browse files Browse the repository at this point in the history
  • Loading branch information
amarrerod committed Jul 23, 2024
1 parent cc05e2a commit f85d83d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions digneapy/qd/_desc_strategies.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def __property_strategy(attr: str):
np.ndarray: Array of the feature descriptors of each instance
"""
try:
if attr not in ("features", "descriptor"):
if attr not in ("features", "transformed"):
raise AttributeError()
except AttributeError:
raise ValueError(
Expand Down Expand Up @@ -96,11 +96,11 @@ def instance_strategy(iterable: Iterable[Instance]) -> np.ndarray:
- features --> Creates a np.ndarray with all the features of the instances.
- performance --> Creates a np.ndarray with the mean performance score of each solver over the instances.
- instance --> Creates a np.ndarray with the whole instance as its self descriptor.
- descriptor --> Creates a np.ndarray with all the transformed descriptors of the instances. Only when using a Transformer.
- transformed --> Creates a np.ndarray with all the transformed descriptors of the instances. Only when using a Transformer.
"""
descriptor_strategies: MutableMapping[str, DescStrategy] = {
"features": __property_strategy(attr="features"),
"performance": performance_strategy,
"instance": instance_strategy,
"descriptor": __property_strategy(attr="descriptor"),
"transformed": __property_strategy(attr="transformed"),
}
1 change: 0 additions & 1 deletion examples/evolve_nn_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

import copy
from collections import deque
from typing import Optional

import pandas as pd

Expand Down

0 comments on commit f85d83d

Please sign in to comment.