This lecture covers the optimization of neuron models for coding and decoding in computational neuroscience. Topics include what constitutes a good neuron model, the AdEx model, spike response model, generalized linear model, parameter estimation, and modeling in vitro data.