|
1 | 1 | """
|
2 |
| -Confirmatory factor analysis using ML. |
| 2 | +Confirmatory factor analysis using machine learning methods. |
3 | 3 |
|
4 | 4 | :author: Jeremy Biggs (jbiggs@ets.org)
|
5 |
| -:date: 2/05/2019 |
6 |
| -:organization: ETS |
| 5 | +:author: Nitin Madnani (nmadnani@ets.org) |
| 6 | +:organization: Educational Testing Service |
| 7 | +:date: 2021-10-18 |
7 | 8 | """
|
8 | 9 |
|
9 |
| -import pandas as pd |
10 |
| -import numpy as np |
11 | 10 | import warnings
|
12 |
| - |
13 | 11 | from copy import deepcopy
|
14 |
| -from scipy.optimize import minimize |
15 |
| -from scipy.linalg import block_diag |
16 | 12 |
|
| 13 | +import numpy as np |
| 14 | +import pandas as pd |
| 15 | +from scipy.linalg import block_diag |
| 16 | +from scipy.optimize import minimize |
17 | 17 | from sklearn.base import BaseEstimator, TransformerMixin
|
18 | 18 | from sklearn.utils import check_array
|
19 | 19 | from sklearn.utils.validation import check_is_fitted
|
20 | 20 |
|
21 |
| -from factor_analyzer.utils import (cov, |
22 |
| - covariance_to_correlation, |
23 |
| - commutation_matrix, |
24 |
| - duplication_matrix_pre_post, |
25 |
| - get_free_parameter_idxs, |
26 |
| - get_symmetric_lower_idxs, |
27 |
| - get_symmetric_upper_idxs, |
28 |
| - impute_values, |
29 |
| - unique_elements, |
30 |
| - merge_variance_covariance) |
| 21 | +from .utils import (commutation_matrix, |
| 22 | + cov, |
| 23 | + covariance_to_correlation, |
| 24 | + duplication_matrix_pre_post, |
| 25 | + get_free_parameter_idxs, |
| 26 | + get_symmetric_lower_idxs, |
| 27 | + get_symmetric_upper_idxs, |
| 28 | + impute_values, |
| 29 | + merge_variance_covariance, |
| 30 | + unique_elements) |
31 | 31 |
|
32 | 32 |
|
33 | 33 | class ModelSpecification:
|
|
0 commit comments