Skip to content

Commit

Permalink
Naming convention revert and hot fix to deciders (#120)
Browse files Browse the repository at this point in the history
* Reverted naming convention from 'L2F' to 'LifelongClassificationForest'

* Reverted naming convention from 'L2N' to 'LifelongClassificationNetwork'

* Hot fix to unclosed parentheses in deciders
  • Loading branch information
levinwil authored Sep 10, 2020
1 parent ade50c6 commit 0dc3501
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion proglearn/deciders.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def fit(
classes=None,
):
if self.classes == None and len(y) == 0:
raise ValueError("Classification Decider classes undefined with no class labels fed to 'fit')
raise ValueError("Classification Decider classes undefined with no class labels fed to fit")
self.classes = self.classes if self.classes != None else np.unique(y)
self.transformer_id_to_transformers = transformer_id_to_transformers
self.transformer_id_to_voters = transformer_id_to_voters
Expand Down
2 changes: 1 addition & 1 deletion proglearn/forest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from .voters import TreeClassificationVoter
from .deciders import SimpleAverage

class L2F:
class LifelongClassificationForest:
def __init__(self, n_estimators=100, tree_construction_proportion=0.67, finite_sample_correction=False):
self.n_estimators = n_estimators
self.tree_construction_proportion=tree_construction_proportion
Expand Down
2 changes: 1 addition & 1 deletion proglearn/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from keras.optimizers import Adam
from keras.callbacks import EarlyStopping

class L2N:
class LifelongClassificationNetwork:
def __init__(
self,
network,
Expand Down

0 comments on commit 0dc3501

Please sign in to comment.