#NEWLINE# def my_kde_bandwidth( obj , fac = ( 1.0 / 5 ) ) : #NEWLINE# #INDENT# "We use Scott's Rule, multiplied by a constant factor." #NEWLINE# return ( np . power ( obj . n , ( ( - 1.0 ) / ( obj . d + 4 ) ) ) * fac )