Unable to import sharpe function

Course Name: AI for Portfolio Management: LSTM Networks, Section No: 5, Unit No: 5,6,7 Unit type: Exercise

Error importing sharpe function from underlying quantra libraries

Output

An error occured while running the code:

At line: 8, in from data_modules.pmai_util_quantra import sharpe, optimal_weights, get_optimal_weights File “/home/app/tmp/…/data_modules/pmai_util_quantra.py”, line 22, in plt.style.use(‘seaborn-v0_8-darkgrid’) # Set the style for the plots File “/usr/local/lib/python3.9/site-packages/matplotlib/style/core.py”, line 124, in use raise IOError( OSError: ‘seaborn-v0_8-darkgrid’ not found in the style library and input is not a valid URL or path; see style.available for list of available styles

Hi,

Thank you for pointing it out. We have gone through the units and fixed the errors.