Created
August 6, 2019 11:08
-
-
Save naxty/37843c34d54934b8ff2abf096864c4b9 to your computer and use it in GitHub Desktop.
Example of using pydantic for features.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pydantic import BaseModel | |
class HousingFeatures(BaseModel): | |
CRIM: float | |
ZN: float | |
INDUS: float | |
CHAS: float | |
NOX: float | |
RM: float | |
AGE: float | |
DIS: float | |
RAD: float | |
TAX: float | |
PTRATIO: float | |
B: float | |
LSTAT: float |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment