Generalize Final data.npz output

Open
#181 1 comment 0 reactions 1 assignee View on GitHub

@martham93 is already working on this.

Since Aug 27, 2020.

Assessment

This issue has not been assessed yet.

Description

enhancement

Currently the data.npz output, by default is split into a test and train set with 80% of the data going into training and 20% of the data going into the test set. While the ratio, number of split sets, and names of split sets can be changed, it could be better to return a data.npz and let users handle splitting the data outside of label-maker for increased flexibility.

I think it could be useful if the new version of the data.npz file returned as the x-y-z tile id as the key and the values is a list with 2 elements, the first being the label in numpy array format, and the second being the image in numpy array format.

Another benefit of this change will be that the image label pairs in numpy array format will retrain the x-y-z tile id. The x-y-z tile information is currently only associated with the labels.npz file and not associated with the data.npz file.

thoughts? @drewbo

Dominant language
Python
Stars
471
Forks
106
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from developmentseed/label-maker

All issues in developmentseed/label-maker

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.