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

Incorrect Variable Naming In Sample Application #15

Closed
sebetci opened this issue Dec 30, 2021 · 0 comments
Closed

Incorrect Variable Naming In Sample Application #15

sebetci opened this issue Dec 30, 2021 · 0 comments

Comments

@sebetci
Copy link

sebetci commented Dec 30, 2021

I think there is an error in the example in the README.md file:

int rows, features, classes;
float** training;
float** classes;

An int variable and a quadratic pointer are both defined with the same name. I think the name of the variable defined in int type and named classes should be cols.

You can apply the fix as follows. You need to edit the other rows affected by this edit as well.

/* In the line below, the "classes" variable has been updated to "cols". */
int rows, features, cols;
@sebetci sebetci closed this as completed Jan 4, 2022
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