Skip to content

Ch2: Hinton digram runs on 19x7 matrix not 20x7 #1

@allaccountstaken

Description

@allaccountstaken

One loading data from excel, one takes 1 row as headers:
matrix = np.asarray((pd.read_excel('weight_matrix.xlsx')))
Thus resulting matrix is 19x7 not 20x7:
matrix.shape
I think you need to do this instead:
matrix = np.asarray((pd.read_excel('weight_matrix.xlsx', header=None)))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions