-
Notifications
You must be signed in to change notification settings - Fork 5
Move functions from notebooks to fusets packages #49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
src/fusets/mogrp.py
Outdated
if i_test == 0: | ||
|
||
for ind in range(noutput_timeseries): | ||
out_mean[ind][:, None, x, y] = (Yp[:, None, 0] * Y_std_vec[ind] + Y_mean_vec[ind]) / Nt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@msalinero (FYI: I copied this from AI4FOOD_OpenEO_MOGPR_S1S2.ipynb )
this line (and 3 other lines) use a variable Nt
that is not defined anywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as discussed with @msalinero L Nt
should be nt
here
import numpy as np | ||
|
||
|
||
def create_empty_2D_list(nrows, ncols): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@msalinero : is it necessary to define this function? can't we just use np.zeros((nrows, ncols))
or a python oneliner like [[0] * ncols for _ in range(nrows)]
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@soxofaan So sorry for the very very late response. Indeed it is not necessary. [[0] * ncols for _ in range(nrows)]
is tested and works fine.
87145a2
to
2836e67
Compare
Issue #46 : move functions from notebooks to real
fusets
packages/modules