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

double loop with same i variable #288

Open
Sn-a-ke opened this issue Sep 18, 2023 · 0 comments
Open

double loop with same i variable #288

Sn-a-ke opened this issue Sep 18, 2023 · 0 comments

Comments

@Sn-a-ke
Copy link

Sn-a-ke commented Sep 18, 2023

https://github.com/Artelnics/opennn/blame/1de26c611fda2fe6cf026a0e4b329c7509a68042/opennn/data_set.cpp#L2353

for(Index i = 0; i < columns_number; i++)
{
    if(columns(i).type == ColumnType::Categorical)
    {
        for(Index i = 0; i < (columns(i).categories_uses).size(); i++) // hides previous i
        {
            variables_uses(i + index) = (columns(i).categories_uses)(i);
        }
        /*...*/
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant