Spooky Sale: 10% off Premium yearly · $118.80 for the first year · until Nov 6Get it

Deep-ML
Learn
Problems1,200+ hands-on ML problemsLearning PathA guided route through the fundamentalsLabsInteractive labs on real techniquesProjectsBuild a GPT, an RL agent, CUDA kernelsCollectionsCurated problem sets and videosMathPen-and-paper math for MLIntuitionInvent the idea behind the formula yourselfPlaylistsYour own problem lists, shareableStudy AssistantAn AI teacher that knows your progress
Interview Prep
Compete
ContestsFresh problem sets, ranked liveLeaderboardWhere you stand, globallyBuddiesSolve with a friend: streaks, a weekly board, chat
Discuss
Deep-Path
Premium
      Intuition
      30 of 102

      Scores into chances

      A model looked at a photo and gave each animal a score: higher means more likely. Scores can be any number, even negative. Write chances(scores): turn them into chances, one per animal.

      A model looked at a photo and scored each animal: higher means more likely, and a score can be negative. Each score has to become a chance, its share of 100%.

      the photo’s scores0the modela photoa photo2cat1dog−1foxscoreseach score’s share of 100%100%
      what share should each animal get? that’s for you to work out
      Your functionchances(scores)
      scoresone number per option, any size, can be negativee.g. [2, 1, −1]
      returnsone chance per option
      solution.pyLoading Python
      Sign in for an AI hint
      ← Leave roomYes or no chances →