Skip to content

accuracy #8

@sorin-moga-tb

Description

@sorin-moga-tb

In test data section, the accuracy is computed as integer ... Changing to float is better.

acc = np.sum(y_pred == y_test) / np.size(y_pred)

in

acc = np.float(np.sum(y_pred == y_test)) / np.float(np.size(y_pred))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions