fix: formatting

This commit is contained in:
Volodymyr Orlov
2020-08-29 20:20:36 -07:00
parent fa0918cee3
commit f7c229f167
2 changed files with 7 additions and 5 deletions
+3 -1
View File
@@ -58,7 +58,9 @@ impl<T: RealNumber, M: Matrix<T>> PartialEq for LogisticRegression<T, M> {
} }
} }
impl<'a, T: RealNumber, M: Matrix<T>> ObjectiveFunction<T, M> for BinaryObjectiveFunction<'a, T, M> { impl<'a, T: RealNumber, M: Matrix<T>> ObjectiveFunction<T, M>
for BinaryObjectiveFunction<'a, T, M>
{
fn f(&self, w_bias: &M) -> T { fn f(&self, w_bias: &M) -> T {
let mut f = T::zero(); let mut f = T::zero();
let (n, _) = self.x.shape(); let (n, _) = self.x.shape();