Skip to content

Electrofacies source code depreciated numpy "as_matrix" command #7

@cdmeyer23

Description

@cdmeyer23

Stoked to keep working with this program!

I am attempting to run the wolfcamp_single example and I am running into an error:
AttributeError: 'DataFrame' object has no attribute 'as_matrix'

Looking at the Electofacies definition when defining minibatch_input:

components = pd.DataFrame(data = pc.transform(X),
index = df[not_null_rows].index)

minibatch_input = components.as_matrix()

it appears that "df.as_matrix()" has depreciated in a the newer version of pandas. I cannot seem to get the correct command to get the example to run. Could someone help?

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