Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when calling ModelAveraging in subsampling mode #103

Open
mnarayan opened this issue Aug 31, 2017 · 0 comments
Open

Error when calling ModelAveraging in subsampling mode #103

mnarayan opened this issue Aug 31, 2017 · 0 comments

Comments

@mnarayan
Copy link
Member

Here is an example input where regularization is a scalar lam = 0.02566

    model = ModelAverage(
        estimator=estimator,
        n_trials=n_trials,
        init_method='spearman',
        penalization=penalization,
        subsample=.5,
        lam=lam,
        n_jobs=n_jobs)

Resulting in the following bug

/home/user/PYTHON/skggm/inverse_covariance/model_average.py in fit(self, X, y)
    382             # currently, dont estimate self.lam_ if penalty_name is different
    383             if self.penalty_name == 'lam':
--> 384                 self.lam_ += np.mean(new_estimator.lam_.flat)
    385
    386         # estimate support locations
AttributeError: 'float' object has no attribute 'flat'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant