Commit 4a028de9 authored by Leonie Pick's avatar Leonie Pick

Fixed correct representation of the synthetic feature (number 12)

parent 6162dca8
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -316,9 +316,9 @@ def Get_F11(i,TrTimeIndex,TrClass):
if TrClass[position] == 0:
F11 = np.random.normal(loc=0.25, scale=0.01, size=1)
elif TrClass[position] == 1:
F11 = np.random.normal(loc=0.5, scale=0.01, size=1)
else:
F11 = np.random.normal(loc=0.75, scale=0.01, size=1)
else:
F11 = np.random.normal(loc=0.50, scale=0.01, size=1)
else:
F11 = 0.5
return F11
......@@ -431,6 +431,7 @@ def Get_Diagnostics(FeatureMatrix,Storms,Training,Save):
TargetClasses[i]=np.where(TrClass[TargetKnown]==i)[0]
#FData[i] = Data[TargetClasses[i],:]
NData[i] = NData2[TargetClasses[i],:]
NData[i][:,11] = Data[TargetClasses[i],11]
MData[i] = np.nanmedian(NData[i],axis=0)
SData[i] = np.nanstd(NData[i],axis=0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment