Skip to content

Commit

Permalink
learn;test
Browse files Browse the repository at this point in the history
  • Loading branch information
Freakwill committed Dec 18, 2023
1 parent 6cf37d7 commit 2778644
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
Binary file modified pyrimidine/learn/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file modified pyrimidine/learn/__pycache__/linear_regression.cpython-310.pyc
Binary file not shown.
Binary file modified pyrimidine/learn/__pycache__/neural_network.cpython-310.pyc
Binary file not shown.
9 changes: 6 additions & 3 deletions pyrimidine/learn/linear_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@
import numpy as np
import numpy.linalg as LA
from sklearn.linear_model import LinearRegression
from ..learn import BaseEstimator

from ..chromosome import BinaryChromosome
from ..chromosome import BinaryChromosome, FloatChromosome
from ..individual import MixedIndividual
from ..population import StandardPopulation

from ..learn import BaseEstimator

from digit_converter import IntervalConverter


Expand All @@ -23,7 +26,7 @@ class GALinearRegression(BaseEstimator, LinearRegression):
'''Linear Regression by GA
'''

estimated_params = ('coefs_', 'intercepts_')
estimated_params = ('coef_', 'intercept_')

@classmethod
def create_model(cls, *args, **kwargs):
Expand Down

0 comments on commit 2778644

Please sign in to comment.