Browse Source

[ENH] Fill nan when generating RKMESpecification

tags/v0.3.2
Gene 3 years ago
parent
commit
831fd4a100
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      examples/examples1/example_rkme.py

+ 2
- 0
examples/examples1/example_rkme.py View File

@@ -4,6 +4,8 @@ import learnware.specification as specification

if __name__ == "__main__":
data_X = np.random.randn(10000, 20)
for i in range(10):
data_X[i, i] = np.nan
spec1 = specification.utils.generate_rkme_spec(X=data_X, gamma=0.1, cuda_idx=-1)
spec2 = specification.rkme.RKMESpecification()
spec1.generate_stat_spec_from_data(data_X)


Loading…
Cancel
Save