muellerzr / fastinference

A collection of inference modules for fastai2
https://muellerzr.github.io/fastinference
Apache License 2.0
89 stars 16 forks source link

Fastinfernce has no tabular attirbute #27

Closed turgut090 closed 3 years ago

turgut090 commented 3 years ago

Hi. The recent version of fastai 2.1.17 started throwing a lot of errors. One of them is related to fastinference. When I call Shap interpretation, it throws:

AttributeError: module 'fastinference' has no attribute 'tabular'
muellerzr commented 3 years ago

How did you install fastinference?

On Wed, Nov 25, 2020 at 6:56 AM Turgut notifications@github.com wrote:

Hi. The recent version of fastai 2.1.17 started throwing a lot of errors. One of them is related to fastinference. When I call Shap interpretation, it throws:

AttributeError: module 'fastinference' has no attribute 'tabular'

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/muellerzr/fastinference/issues/27, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB3YCV36NA7U7CJGVNB3WFDSRTWF3ANCNFSM4UCJP7LA .

muellerzr commented 3 years ago

Related to: https://github.com/muellerzr/fastinference/issues/21

turgut090 commented 3 years ago

This is the installation: pip install fastinference fastinference[interp]. And I noticed that for fastai 2.1.15 it works fine. But with 2.1.7 I get an error while testing with Github Actions (fresh installation every time). Fastai 2.1.7 throws errors:

muellerzr commented 3 years ago

The first two are unrelated, this project is separate from fastai.

You're also installing wrong, it should just be pip install fastinference[interp].

That being said there is some bugs going on so install via:

pip install git+https://github.com/muellerzr/fastinference#egg=fastinference[interp]
turgut090 commented 3 years ago

It worked with the dev version of fastinference. Thanks!

turgut090 commented 3 years ago

@muellerzr Hi. Should we clone fastinference from Github every time or it will be on PyPI soon?

muellerzr commented 3 years ago

Can you go ahead and try now? It seems I tried to make a release at some point but doesn't look like it went through

turgut090 commented 3 years ago

@muellerzr Yes, this worked with fastai 2.1.8 and with the installation from Pypi. Thank you.