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.

Change dictionary key in RubrixLogHTTPMiddleware from `probabilities` into `scores`

See original GitHub issue

The idea is changing this key:

https://github.com/recognai/rubrix/blob/766a9f39cffda002f75eb3528ab040f7a8e2c46b/src/rubrix/client/asgi.py#L57

from probabilities to the more general scores

Also we’d need to update the related tests.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
dvsrepocommented, Oct 22, 2021

Hi! Tests are found in the tests folder, which follows the same structure of the src and contain tests for the different classes and funcions in the src .py files.

For this case: https://github.com/recognai/rubrix/blob/master/tests/client/test_asgi.py

0reactions
frascuchoncommented, Nov 2, 2021

thanks @iakhil

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to choose keys from a python dictionary based on ...
Given this correlation of items to weights, how can I choose a key from d such that 6.25% of the time the result...
Read more >
Python | Ways to change keys in dictionary
Method 1: Rename a Key in a Python Dictionary using the naive method. Here, we used the native method to assign the old...
Read more >
Data Structures (Part II): Dictionaries
Python's dictionary allows you to store key-value pairs, and then pass the dictionary a key to quickly retrieve its corresponding value.
Read more >
Sorting a Dictionary in Python
In this tutorial, we will learn how to sort dictionaries using the sorted() function in python. sorted() function. The sorted() function can ...
Read more >
Python Dictionary Comprehension Tutorial
Learn all about Python dictionary comprehension: how you can use it to create dictionaries, to replace (nested) for loops or lambda functions with...
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