simplifying APISee original GitHub issue
The API could be simplified in a few places. For example:
hyp.plotwe could include an
alignflag that runs
hyp.tools.alignon the data if set to
hyp.tools.procrusteswe could include a
ndimsflag that runs
hyp.tools.reduceon the dataset prior to alignment if not
hyp.tools.procrustes, if the data matrices don’t have the same numbers of features, we should zero-pad all of the matrices to ensure they have the same number of features as the matrix with the most features
hyp.tools.loadwe could include
ndimsflags that pass the data through the appropriate other functions (
hyp.tools.reduce, followed by
hyp.tools.align) so that the reduced/aligned data are returned from the start, without needed to save extra copies of the dataset
- Created 6 years ago
- Comments:20 (14 by maintainers)
Top GitHub Comments
all good! pushing to pip!
@jeremymanning - re dataframes, we do not do any reordering. If the input data is a dataframe (or list of dfs) we:
- transform all text columns into binary dummy variables (see here leaving the numerical columns as they are
- turn the whole df into a np array
- optionally output the column labels if
I’ll add an issue to check to see if the column labels are the same across dfs when reducing. if they are the same, just out of order, they will be resorted.
@rarredon I will be working on hypertools all day today, so ping me if you need clarification as things come up!