34e7e918bd4fc09f643e8bb448e875a9bcb7e841,experiment.py,,,#,4

Before Change


    joined["y"] = data.y
    mod = model.from_formula(formula, joined)
    res = mod.fit()
    print(res)

After Change


import numpy as np
y = np.arange(12.0)[:,None]
import pandas as pd
entities = pd.Categorical(pd.Series(["a"]*6+["b"]*6))
dummies = pd.get_dummies(entities)
w = np.random.chisquare(5, (12,1)) / 5
w = w/w.mean()
root_w = np.sqrt(w)
wd = root_w  * dummies.values
wy = root_w  * y
b = np.linalg.pinv(wd) @ wy
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: bashtage/linearmodels
Commit Name: 34e7e918bd4fc09f643e8bb448e875a9bcb7e841
Time: 2017-03-29
Author: kevin.k.sheppard@gmail.com
File Name: experiment.py
Class Name:
Method Name:


Project Name: robertmartin8/PyPortfolioOpt
Commit Name: 57ff4470542c9634169285b7a08d9efcfea68586
Time: 2021-02-11
Author: martin.robertandrew@gmail.com
File Name: tests/test_cvar.py
Class Name:
Method Name: test_cvar_example


Project Name: nilearn/nilearn
Commit Name: 311ac284d99ea7243e0918949f3a499a7a93fab5
Time: 2015-11-29
Author: gael.varoquaux@normalesup.org
File Name: examples/decoding/plot_haxby_space_net.py
Class Name:
Method Name:


Project Name: mne-tools/mne-python
Commit Name: 017d156706984b88a524b146ec71415c65b42391
Time: 2019-05-14
Author: w.m.vanvliet@gmail.com
File Name: examples/inverse/plot_dics_source_power.py
Class Name:
Method Name: