Coder Social home page Coder Social logo

Comments (4)

vrodriguezf avatar vrodriguezf commented on July 29, 2024

In GitLab by @lgs on Oct 29, 2020, 10:59

I have updated the function to the one shown below:

def plot_validation_ts_ae(prediction:np.array, original:np.array,fig_size = (15,15),anchor = (0, 0.85),window_num = 0):
    # Create the figure
    fig = plt.figure(figsize=(fig_size[0],fig_size[1]))
    # Create the subplot axes
    axes = fig.subplots(nrows=original.shape[2], ncols=1)
    # We iterate over the sensor data and plot both the original and the prediction
    for i,ax in zip(range(original.shape[2]),fig.axes):
        ax.plot(original[window_num,:,i], label='Original Data')
        ax.plot(prediction[window_num,:,i], label='Prediction')
    # Handle the legend configuration and position
    lines, labels = fig.axes[-1].get_legend_handles_labels()
    fig.legend(lines, labels,bbox_to_anchor=(anchor[0], anchor[1]),loc='upper left')
    return fig

from deepvats.

vrodriguezf avatar vrodriguezf commented on July 29, 2024

In GitLab by @lgs on Oct 29, 2020, 11:14

mentioned in commit 4e1546a

from deepvats.

vrodriguezf avatar vrodriguezf commented on July 29, 2024

In GitLab by @lgs on Oct 29, 2020, 11:19

mentioned in merge request !13

from deepvats.

vrodriguezf avatar vrodriguezf commented on July 29, 2024

In GitLab by @lgs on Oct 29, 2020, 11:21

mentioned in commit fdf596a

from deepvats.

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.