3c4dad8517dd8b46e9797d48e50e7730966d7db1,pypfopt/risk_models.py,,exp_cov,#Any#Any#Any#,93

Before Change


        warnings.warn("prices are not in a dataframe", RuntimeWarning)
        prices = pd.DataFrame(prices)
    assets = prices.columns
    daily_returns = prices.pct_change().dropna(how="all")
    N = len(assets)

    // Loop over matrix, filling entries with the pairwise exp cov
    S = np.zeros((N, N))

After Change


        warnings.warn("prices are not in a dataframe", RuntimeWarning)
        prices = pd.DataFrame(prices)
    assets = prices.columns
    daily_returns = daily_price_returns(prices)
    N = len(assets)

    // Loop over matrix, filling entries with the pairwise exp cov
    S = np.zeros((N, N))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: robertmartin8/PyPortfolioOpt
Commit Name: 3c4dad8517dd8b46e9797d48e50e7730966d7db1
Time: 2019-01-25
Author: gumblex@aosc.io
File Name: pypfopt/risk_models.py
Class Name:
Method Name: exp_cov


Project Name: robertmartin8/PyPortfolioOpt
Commit Name: 3c4dad8517dd8b46e9797d48e50e7730966d7db1
Time: 2019-01-25
Author: gumblex@aosc.io
File Name: pypfopt/risk_models.py
Class Name:
Method Name: semicovariance


Project Name: robertmartin8/PyPortfolioOpt
Commit Name: 3c4dad8517dd8b46e9797d48e50e7730966d7db1
Time: 2019-01-25
Author: gumblex@aosc.io
File Name: pypfopt/risk_models.py
Class Name:
Method Name: sample_cov


Project Name: robertmartin8/PyPortfolioOpt
Commit Name: 3c4dad8517dd8b46e9797d48e50e7730966d7db1
Time: 2019-01-25
Author: gumblex@aosc.io
File Name: pypfopt/expected_returns.py
Class Name:
Method Name: mean_historical_return


Project Name: robertmartin8/PyPortfolioOpt
Commit Name: 3c4dad8517dd8b46e9797d48e50e7730966d7db1
Time: 2019-01-25
Author: gumblex@aosc.io
File Name: pypfopt/expected_returns.py
Class Name:
Method Name: ema_historical_return