Skip to content

Commit

Permalink
Merge pull request #35 from EducationalTestingService/hotfix/fix-fit-…
Browse files Browse the repository at this point in the history
…method

HotFix: Add `self` to `fit()` method in CFA
  • Loading branch information
jbiggsets authored Apr 8, 2019
2 parents 408efe1 + 51950da commit ffe6083
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
14 changes: 7 additions & 7 deletions conda-recipe/factor_analyzer/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ build:

requirements:
build:
- python ==3.6
- python==3.6
- setuptools
- pandas
- scipy=1.2.1
- numpy=1.16.2
- scikit-learn=0.20.1
- scipy
- numpy
- scikit-learn
run:
- python==3.6
- pandas
- scipy=1.2.1
- numpy=1.16.2
- scikit-learn=0.20.1
- scipy
- numpy
- scikit-learn

test:
imports:
Expand Down
6 changes: 3 additions & 3 deletions conda_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
python>=3.4
pandas
scipy=1.2.1
numpy=1.16.2
scikit-learn=0.20.1
scipy
numpy
scikit-learn
nose=1.3.7
1 change: 1 addition & 0 deletions factor_analyzer/confirmatory_factor_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,7 @@ def fit(self, X, y=None):
self.aic_ = 2 * res.fun + 2 * (x0.shape[0] + self.model.n_variables)
if self.n_obs is not None:
self.bic_ = 2 * res.fun + np.log(self.n_obs) * (x0.shape[0] + self.model.n_variables)
return self

def transform(self, X):
"""
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pandas
scipy==1.2.1
numpy==1.16.2
scikit-learn==0.20.1
scipy
numpy
scikit-learn

0 comments on commit ffe6083

Please sign in to comment.