Sklearn Inverse Square Formula