Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

Well, if they gave you the formula for softmax, it shouldn't take more than a minute to implement it:

import numpy as np

def softmax(x): return np.exp(x)/np.sum(np.exp(x))

where x is an array of numbers.



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: