Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Regression Tutorial using slayer #282

Closed
naveedunjum opened this issue Jan 26, 2024 · 2 comments
Closed

Regression Tutorial using slayer #282

naveedunjum opened this issue Jan 26, 2024 · 2 comments
Labels
0-needs-review 1-feature New feature or request

Comments

@naveedunjum
Copy link

User story

As a user, I want to request some ways to solve regression problems using Slayer. I tried the xor_regression tutorial given and modifying that, by changing the dataloader for the dataset. But my outputs were always zero, and the network wasnt learning anything.

For example I wanted to recreate a sinusoidal function using Slayer, so I used a single dimension x axis to predict the corresponding sin value. But the outputs were always zero.

Can someone please help with dealing with outputs with continous functions?

@naveedunjum naveedunjum added the 1-feature New feature or request label Jan 26, 2024
@Michaeljurado42
Copy link
Contributor

Michaeljurado42 commented Jan 26, 2024

I think there are a lot of ways to approach this. I recommend you look at the sigma delta tutorial here which predicts a continuous steering angle.

This is not the only way to get a continuous like value. For example, you can calculate spike rates over a sliding window. Then you can transform or interprete that rate however you want.

For example, If you introduce a bias term, you can constrain the output of the SNN to produce values between 0 and 1 with a sigmoid as shown in this demo.

@naveedunjum
Copy link
Author

naveedunjum commented Jan 27, 2024

I think there are a lot of ways to approach this. I recommend you look at the sigma delta tutorial here which predicts a continuous steering angle.

This is not the only way to get a continuous like value. For example, you can calculate spike rates over a sliding window. Then you can transform or interprete that rate however you want.

For example, If you introduce a bias term, you can constrain the output of the SNN to produce values between 0 and 1 with a sigmoid as shown in this demo.

Thanks. I will have a look at this. I will post here how I far I can go with this

@lava-nc lava-nc locked and limited conversation to collaborators Jan 29, 2024
@bamsumit bamsumit converted this issue into discussion #283 Jan 29, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
0-needs-review 1-feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants