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

How can I do a sequence learning with Rubix-ML? #203

Open
sr13579 opened this issue Jan 12, 2022 · 3 comments
Open

How can I do a sequence learning with Rubix-ML? #203

sr13579 opened this issue Jan 12, 2022 · 3 comments
Labels
question Further information is requested

Comments

@sr13579
Copy link

sr13579 commented Jan 12, 2022

I am very new to this.But I would like to know if there is a way to find out the next sequence of a dataset.
Assume I have this:
1,4,6,3,2,5,4,?
I would like to learn what is the sequence or number after this. Is that possible?

@andrewdalpino andrewdalpino added the question Further information is requested label May 27, 2023
@andrewdalpino
Copy link
Member

Hi @sr13579 yes it's possible but it's not optimal. You can design a dataset such that the next value in the sequence is the label of the sample. If you need to project that out further into the sequence you could autoregress (feed the prediction back into the model to get the next value).

Having that said, we do not have any Learners that are designed specifically for sequences. There's been talk of implementing LSTM and VAR models though.

@rasaskate296
Copy link

@sr13579 Are you able to provide a trivial example? I'm new to ML and a little confused what you mean by this:

such that the next value in the sequence is the label of the sample

I'm trying to have then next day have the proper incremented integer in this example

$samples = [
    [0],
    [1],
    [2],
    [3]
];
$labels = [
    '2024-08-02',
    '2024-08-03',
    '2024-08-04',
    '2024-08-05'
];
$dataset = new Labeled($samples, $labels);

$estimator = new SVC(1.0, new Linear(), true, 1e-3, 100.0);
$estimator->train($dataset);

// what now?

@sr13579
Copy link
Author

sr13579 commented Aug 8, 2024

@rasaskate296
You need to give me a full details of your requirement. I can't actually say anything with that. I need insights on the data.
Perhaps you can hit my repo if you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants