Skip to content

Commit

Permalink
minor edits
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Weidenholzer committed Jul 27, 2023
1 parent a55decd commit 23a68b2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from typing import Callable

from openeo_processes_dask.process_implementations.cubes import apply_dimension
from openeo_processes_dask.process_implementations.data_model import RasterCube
from openeo_processes_dask.process_implementations.exceptions import (
DimensionNotAvailable,
Expand Down Expand Up @@ -29,5 +30,12 @@ def fit_curve(data: RasterCube, parameters: list, function: Callable, dimension:
return fit_result


def predict_curve():
def predict_curve(
data: RasterCube,
function: Callable,
parameters: RasterCube,
dimension: str,
labels: list,
):
# TODO: constrain prediction to nodata values
pass
2 changes: 1 addition & 1 deletion tests/test_ml.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_fit_regr_random_forest_inline_geojson(

@pytest.mark.parametrize("size", [(6, 5, 4, 3)])
@pytest.mark.parametrize("dtype", [np.float64])
def test_fit_curve(
def test_curve_fitting(
temporal_interval, bounding_box, random_raster_data, process_registry
):
origin_cube = create_fake_rastercube(
Expand Down

0 comments on commit 23a68b2

Please sign in to comment.