Skip to content

0.1.2

Latest
Compare
Choose a tag to compare
@ActurialCapital ActurialCapital released this 15 Jul 14:13
· 5 commits to main since this release

Release 0.1.2

Description

In this release, we are excited to introduce a new plot functionality to our project. This feature allows users to generate and customize plots directly within the base application, enhancing data visualization and analysis capabilities. The new plot functionality is implemented through a function named plot, which leverages the Plotly library to create interactive and visually appealing chart.

Key Features and Improvements:

  1. Plot Functionality:

    • plot Function: A new function that generates plots using plotly.
    • Customization Options: Users can customize the plot by setting titles, axis labels, colors, and more.
    • Interactive Plots: The generated plots are interactive.
  2. Test:

    • Added tests in the test section in the repository.

Example

To use the new plot functionality, you can call the plot function as shown in the example below:

>>> import pandas as pd
>>> from fold import ExpandingNumberSplit
>>> index = pd.date_range("2010", "2024", freq="D")
>>> model = ExpandingNumberSplit(
...     index,
...     n=5,
...     min_length=360,
...     split=-180,
...     sample_labels=["IS", "OOS"],
... )

>>> # Generate a scatter plot
>>> fig = model.plot()

>>> # Show the plot
>>> fig.show()