Skip to content

Instantly share code, notes, and snippets.

@naxty
Created August 6, 2019 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naxty/37843c34d54934b8ff2abf096864c4b9 to your computer and use it in GitHub Desktop.
Save naxty/37843c34d54934b8ff2abf096864c4b9 to your computer and use it in GitHub Desktop.
Example of using pydantic for features.
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