Giter Site home page Giter Site logo

Comments (11)

closedLoop avatar closedLoop commented on August 22, 2024 4

@twiecki if pyfolio and empyrical are going to be so intertwined, I believe better testing and deployment needs to be made. Maybe synchronize version numbers / releases when there are reverse compatibility.

These headaches are making pyfolio and all of these other libraries more trouble then they are worth.

from empyrical.

iamraa avatar iamraa commented on August 22, 2024 2

@dartdog pyfolio does not fix it. You have to fix it manualy in zipline scripts.
%env%/lib/python#.#/site-packages/zipline/finance/risk/
period.py & cumulative.py
Replace information_ratio by excess_sharpe.

from empyrical.

twiecki avatar twiecki commented on August 22, 2024 1

Can you guys try to install pyfolio master: pip install -U git@https://github.com/quantopian/pyfolio

from empyrical.

iamraa avatar iamraa commented on August 22, 2024 1

Somebody renamed information_ratio to excess_sharpe. Make changes by yourselves or wait for miracle.

from empyrical.

twiecki avatar twiecki commented on August 22, 2024 1

actually it was just renamed.

from empyrical.

dartdog avatar dartdog commented on August 22, 2024 1

@iamraa it actually at least got pyfolio up and going,, as follows... zipline is yet another exercise...
Well I did create a new env in conda, is just did a conda py 3 env,, then ran the setup.py in pyfolio.. it could not find or install numpy itself so I conda installed it then re-ran the setup.py for pyfolio, it kicked off recompiling just about everything..conda installed matplotlib.. then I replaced the utils.py in the egg.. with the modified one for Google data. Also had to install the right kernel modules in the new env for jupyter,, and low and behold, I can now run the single stock notebook!! also had to install a few other packages request-files and requests-ftp (for others who follow)

from empyrical.

falaktheoptimist avatar falaktheoptimist commented on August 22, 2024

Same error, but in my case this occurs in a call from zipline

from empyrical.

richafrank avatar richafrank commented on August 22, 2024

@iamraa I could be mistaken, but I believe that excess_sharpe was added and information_ratio removed - but that they are functions with different behavior, as opposed to one function that was renamed.

from empyrical.

richafrank avatar richafrank commented on August 22, 2024

Oh ok! I stand corrected.

from empyrical.

dartdog avatar dartdog commented on August 22, 2024

Under an Anaconda virtual env for python 3.6
FYI, guess I'll try a manual install..
pip install -U git@https://github.com/quantopian/pyfolio
Collecting git@ https://github.com/quantopian/pyfolio
Could not find a version that satisfies the requirement git@ https://github.com/quantopian/pyfolio (from versions: )
No matching distribution found for git@ https://github.com/quantopian/pyfolio
(py36n) tom@tomServal:~$

from empyrical.

dartdog avatar dartdog commented on August 22, 2024

Welp a simple

(py36n) tom@tomServal:~$ cd Documents//pyfolio/
(py36n) tom@tomServal:~/Documents/pyfolio$ python setup.py install
/home/tom/anaconda3/envs/py36n/lib/python3.6/site-packages/setuptools/dist.py:336: UserWarning: Normalizing 'v0.7.0+18.ga34222e' to '0.7.0+18.ga34222e'
  normalized_version  ```  

did not work as hoped..

```%matplotlib inline
import pyfolio as pf  ```  

gave me:  

```RuntimeError                              Traceback (most recent call last)
RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa ```   

Guess I'll try a new env...

from empyrical.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.