Skip to content

Theano datatype issue in model6.9 week04 #4

@Rabeez

Description

@Rabeez

I was getting a TypeError on this line even though you had casted the column to an Int64 already.

" #married = pm.Data('married', d['married'].values)\n",

For some reason casting to Int64 does not make a numpy typed series and causes Theano to freak out. Just changing this cast to astype('int') here solves the issue.

"d['married'] = d['married'].astype('Int64')"

I'll submit a PR later unless you get to this first 😄

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