Skip to content

F821 undefined name 'keras' #21287

Open
Open
@wrpalaia

Description

@wrpalaia
##[debug]Evaluating condition for step: 'Lint with flake8'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Lint with flake8
##[debug]Loading inputs
##[debug]Loading env
Run # stop the build if there are Python syntax errors or undefined names
##[debug]/usr/bin/bash -e /home/runner/work/_temp/a13946[2](https://github.com/wrpalaia/neuralforest/actions/runs/15050291809/job/42303699780#step:5:2)8-0932-4995-95df-3317c85c626f.sh
./train.py:7[3](https://github.com/wrpalaia/neuralforest/actions/runs/15050291809/job/42303699780#step:5:3):9: F821 undefined name 'keras'
    y = keras.utils.to_categorical(y_original, num_classes=n_classes)
        ^
1     F821 undefined name 'keras'
1
Error: Process completed with exit code 1.
##[debug]Finishing: Lint with flake[8](https://github.com/wrpalaia/neuralforest/actions/runs/15050291809/job/42303699780#step:5:8)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions