Skip to content

Commit

Permalink
1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
robertfrankzhang committed May 17, 2020
1 parent 0965e1a commit 4b79eda
Show file tree
Hide file tree
Showing 13 changed files with 16,793 additions and 16,833 deletions.
1,224 changes: 606 additions & 618 deletions defaultExportDir/fileRulePopulation.csv

Large diffs are not rendered by default.

10,000 changes: 5,000 additions & 5,000 deletions defaultExportDir/iterationData.csv

Large diffs are not rendered by default.

1,224 changes: 606 additions & 618 deletions defaultExportDir/popData2.csv

Large diffs are not rendered by default.

Binary file modified defaultExportDir/savedModel1
Binary file not shown.
Binary file modified defaultExportDir/savedModel2
Binary file not shown.
Binary file modified defaultExportDir/savedModel3
Binary file not shown.
5,835 changes: 2,917 additions & 2,918 deletions eLCS User Guide.ipynb

Large diffs are not rendered by default.

2,042 changes: 1,021 additions & 1,021 deletions eLCSPerformanceTests/.ipynb_checkpoints/eLCS Performance Comparison-checkpoint.ipynb

Large diffs are not rendered by default.

1,248 changes: 615 additions & 633 deletions eLCSPerformanceTests/defaultExportDir/fileRulePopulation.csv

Large diffs are not rendered by default.

10,000 changes: 5,000 additions & 5,000 deletions eLCSPerformanceTests/defaultExportDir/iterationData.csv

Large diffs are not rendered by default.

2,042 changes: 1,021 additions & 1,021 deletions eLCSPerformanceTests/eLCS Performance Comparison.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
setup(
name = 'scikit-eLCS',
packages = ['skeLCS'],
version = '1.2',
version = '1.2.1',
license='License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
description = 'Educational Learning Classifier System',
long_description_content_type="text/markdown",
author = 'Robert Zhang, Ryan J. Urbanowicz',
author_email = 'robertzh@seas.upenn.edu,ryanurb@upenn.edu',
url = 'https://github.com/UrbsLab/scikit-eLCS',
download_url = 'https://github.com/UrbsLab/scikit-eLCS/archive/v_1.2.tar.gz',
download_url = 'https://github.com/UrbsLab/scikit-eLCS/archive/v_1.2.1.tar.gz',
keywords = ['machine learning','data analysis','data science','learning classifier systems'],
install_requires=['numpy','pandas','scikit-learn'],
classifiers=[
Expand Down
7 changes: 5 additions & 2 deletions skeLCS/eLCS.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,6 @@ def __init__(self, learning_iterations=10000, track_accuracy_while_fit = False,
try:
if not self.checkIsInt(random_state):
raise Exception("random_state param must be integer or None")
random.seed(int(random_state))
np.random.seed(int(random_state))
except:
raise Exception("random_state param must be integer or None")

Expand Down Expand Up @@ -285,6 +283,11 @@ def fit(self, X, y):
except:
raise Exception("X and y must be fully numeric")

#Set Random State
if self.random_state != None:
random.seed(int(self.random_state))
np.random.seed(int(self.random_state))

# Handle repeated fit calls
if self.learning_iterations == self.explorIter and self.reboot_filename != None:
raise Exception("You cannot call fit(X,y) a second time with a rebooted population.")
Expand Down

0 comments on commit 4b79eda

Please sign in to comment.