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.

Feature Request: Include loss_ as an attribute for the fitting

See original GitHub issue

First off, thank you for implementing this method in Python! Very stoked to start using it for my bioinformatics datasets. I have been trying to quantify which parameters are the best for my datasets and having some trouble. I was wondering if the loss provided in your Enthought talk from SciPy 2018: image

Could be included as an attribute we can access later so I can figure out which of my hyperparameters settings should be used?

I have a precomputed data matrix (137 x 137) and using the following hyperparameter configs:

for n_neighbors in [3,4,5,6,7]:
    for min_dist in [0.01, 0.1,0.2,0.3,0.5]:
        for spread in [0.01, 0.1,0.2,0.3,0.5]:
            for learning_rate in [1e-3, 1e-2,1e-1,1]:

There is some structure that fits my hypothesis from some of these configs and I want to know which one specifically I should choose so I thought maybe so sort of loss_ metric would be really useful in this scenario.

Also. if you have a few moments. Can you describe why I see this topology sometimes where it looks like a regression? image image

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lmcinnescommented, Dec 13, 2018

I would start with a learning rate of 1.0 (the default). You can scale it down a bit if you need, but realistically you shouldn’t need to get too much smaller than 0.5 I would imagine.

1reaction
lmcinnescommented, Dec 6, 2018

You shouldn’t need a learning rate that low – I suspect that that was simply working around the bug that got fixed very recently. You may want to try again with fresh code and see if you can get away with a higher learning rate.

As to comparing hyperparameters … the main ones to change are n_neighbors and min_dist. Ultimately there are not right values, nor is one any better than the others; they are simply different views of your data. You can think of it an being somewhat loosely analogous to looking at 3D data from different viewing angles – no one angle is more true than any other, but some angles may highlight different properties of the data than others. The parameters for UMAP are not quite so simple, but it comes down to a similar thing – they offer you different lenses on the data, and ultimately the lens that helps you see relevant things is the useful one (as opposed to being the true one).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting the “Feedback From” Attribute in Savio
The “Feedback From” attribute lets you find feature requests from ... features requested by “lost deals” to see what prospective customers would have...
Read more >
I am getting this error in my flask web app: AttributeError ...
Cause: When pickling the fitted model some attributes gets left out, _loss attribute is typical. That is a GBC design issue inherent int...
Read more >
Feature Request: Extra task fields (AKA "Custom Task Attributes")
I have recently been spending time with an MLO competitor which has a feature that they call "Custom Task Attributes", which I consider...
Read more >
Keras Concatenate : AttributeError: 'list' object has no attribute ...
I am using Google Colab. Here is a small code I have written: from tensorflow.keras.models import Sequential from tensorflow.keras.layers ...
Read more >
7 Ways to Prioritize Features and Product Improvements - Planio
But how can you de-prioritize Sally the CEO's suggestion that you move to a ... they can't have equal say in what features...
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