Skip to content
Advertisement

Tag: fast-ai

add_datepart( ) produces KeyError

I’m trying to split a date column in a pandas data frame using add_datepart( ). However, running trainingSetFirstCycle = add_datepart(trainingSetFirstCycle, trainingSetFirstCycle.date, drop=True) returns this error message: I checked the documentation to see what I’d done wrong. In the example shown, the definition of the data frame includes a dictionary consisting of the column name “date” and a list containing its

Using densenet with fastai

I am trying to train a densenet model using the fast.ai library. I checked the documentation and I managed to make it work for resnet50. However, for densenet, it seems to be unable to find the module. I tried to use arch=models.dn121 as stated by this forum. But I get the same error. Can anyone please help? Here is the

Advertisement