Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code not executed #50

Open
abdulrehman192 opened this issue Nov 29, 2023 · 3 comments
Open

Code not executed #50

abdulrehman192 opened this issue Nov 29, 2023 · 3 comments
Labels
Website Bug found on the Net2Vis WebApp

Comments

@abdulrehman192
Copy link

Describe the bug
When I reload or press update button its given an error code not executed.

Network ID
https://viscom.net2vis.uni-ulm.de/OG1Br2BAkYSwwrV6CADl4X5EfErFjUzvuUwXWDdLbdsIXNhb9L

Expected behavior
architecture should be drawn

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows
  • Browser chrome
  • Version [e.g. 22]

Additional context
also if I upload a new model it gives an error

@abdulrehman192 abdulrehman192 added the Website Bug found on the Net2Vis WebApp label Nov 29, 2023
@Sparkier
Copy link

It seems like the link you send does not have valid data anymore. Can you either try to paste your model code again or share it with me so I can debug?

@abdulrehman192
Copy link
Author

abdulrehman192 commented Nov 29, 2023 via email

@Sparkier
Copy link

For me, the default code works, see for example here.

When I open your link, however, this is the code I see:

from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import SimpleRNN, Dense

def get_model(input_shape, rnn_units, num_classes):
    model = Sequential()
    
    # Simple RNN layer
    model.add(SimpleRNN(units=rnn_units, input_shape=input_shape))
    
    # Dense layer for classification
    model.add(Dense(num_classes, activation='softmax'))
    
    return model

# Example usage:
input_shape = (10, 15)  # Define the input shape based on your data
rnn_units = 32  # Number of units in the SimpleRNN layer
num_classes = 10  # Number of output classes

# Create the model
model = get_model(input_shape, rnn_units, num_classes)

This won't work because we call the get_model() function to render the model which you changed to include some parameters. If you want this code to work you'd have to change it like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Website Bug found on the Net2Vis WebApp
Projects
None yet
Development

No branches or pull requests

2 participants