Skip to content

Cannot process through Lyzenga 2006 method #4

@CyanBC

Description

@CyanBC

I was able to get the KNN process to work through DepthEstimator

de = DepthEstimator('Input_Image', 'Depth_raster') depth = de.knn_depth_estimation(k=5)

however, the same process for Lyzenga

lyzdepth = de.lyzenga_depth_estimation()

fails eventually at Lyzenga2006.get_selfscore()

I've tracked it though to:
Lyzenga2006.py line 95: x_train = x_train.compressed().reshape(-1,nbands)

The above code takes my image array (x_train) which is a (x_train.shape==(7004,6199,8)) Woldview 2/3 image, and turns it into a (0,8) array, which then throws the error:
ValueError: Found array with a 0 sample(s) (shape=(0, 2)) while a minimum of 1 is required
when run through this line:
fit = get_fit( ind, x_train, y_train, n_jobs=njobs )

I'm not really sure what shape things should be in to get through this process, can you give me any tips?

There is a similar array shape problem in the Lyzenga Guide for X
full_pred = skolsfit.predict( X[...,best_ind] ) so I was hoping the above process would garner more success.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions