plot of logic regression cost function