question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The API could be simplified in a few places. For example:

  • In hyp.plot we could include an align flag that runs hyp.tools.align on the data if set to True (default: False).
  • In hyp.tools.align and hyp.tools.procrustes we could include a ndimsflag that runs hyp.tools.reduce on the dataset prior to alignment if not None (default: None)
  • In hyp.tools.align and 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
  • in hyp.tools.load we could include align and ndims flags 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

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:20 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
andrewheussercommented, Jun 5, 2017

all good! pushing to pip!

1reaction
andrewheussercommented, Jun 2, 2017

@jeremymanning - re dataframes, we do not do any reordering. If the input data is a dataframe (or list of dfs) we:

  1. transform all text columns into binary dummy variables (see here leaving the numerical columns as they are
  2. turn the whole df into a np array
  3. optionally output the column labels if return_labels=True

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!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Authorization - Simplify API
API and example code needed to accept payments through Simplify Commerce.
Read more >
Simplified API
Simplified APIs are a set of user friendly REST APIs. Send Help Center feedback.
Read more >
5 Understanding the Simplified API Programming Model
The main interface in the simplified API is JMSContext that combines the functions of the Connection and Session objects of the JMS 1.1...
Read more >
Simplifying API Development - InfoQ
Abhinav Asthana discusses methods for simplifying API development.
Read more >
API Simplification
APIs are simplified from three bucket constructors to a single bucket constructor so that you don't have to remember multiple properties. Even if...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found