Skip to content

Commit

Permalink
update uk pv prod config for tilt and orientation (#118)
Browse files Browse the repository at this point in the history
Small update of the uk pv prod config to handle tilt and orientation for
training and inference.
  • Loading branch information
zakwatts authored Jun 4, 2024
1 parent c00c483 commit fdee0f3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions psp/exp_configs/uk_pv_prod.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,16 @@ def _get_capacity(d):
return value


def _get_tilt(d):
tilt_values = d["tilt"].values
return tilt_values


def _get_orientation(d):
orientation_values = d["orientation"].values
return orientation_values


class ExpConfig(ExpConfigBase):
def get_pv_data_source(self):
return NetcdfPvDataSource(
Expand Down Expand Up @@ -223,6 +233,8 @@ def get_model(self, *, random_state: np.random.RandomState | None = None) -> PvS
random_state=random_state,
normalize_features=True,
capacity_getter=_get_capacity,
tilt_getter=_get_tilt,
orientation_getter=_get_orientation,
pv_dropout=0.1,
)

Expand Down

0 comments on commit fdee0f3

Please sign in to comment.