Skip to content

NameError: name 'GatedTabTransformer' is not defined #536

@zmce2018

Description

@zmce2018

Hi Team,

I have been running experiments and trying different models. I have found that I was not able to use GatedTabTransformer model

My environment is:

os             : Windows-10-10.0.19043-SP0
python         : 3.8.13
tsai           : 0.3.1
fastai         : 2.6.3
fastcore       : 1.4.3
optuna         : 2.10.0
torch          : 1.11.0
device         : 1 gpu (['NVIDIA GeForce GTX 1080 Ti'])
cpu cores      : 12
RAM            : 31.95 GB
GPU memory     : [11.0] GB

Code I was trying to run:

learn = TSRegressor(X, y, splits=splits, bs=[64], batch_tfms=batch_tfms,
                     arch="GatedTabTransformer", loss_func = mae,
                     metrics=mae,device='cuda',cbs=ShowGraph())

Error is here:

  File F:\CNNpred\tsai_TST.py:30 in <module>
    arch=GatedTabTransformer, loss_func = mae,

NameError: name 'GatedTabTransformer' is not defined

I have tested other models okay.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions