Skip to content

Commit

Permalink
refactor: replace Array1 with Vector in Polynomial
Browse files Browse the repository at this point in the history
  • Loading branch information
tspooner committed Jan 18, 2018
1 parent 71143f7 commit 79d4426
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fa/projection/polynomial.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use Vector;
use super::{Projector, Projection};
use geometry::RegularSpace;
use geometry::dimensions::{BoundedDimension, Continuous};
use ndarray::Array1;
use utils::cartesian_product;


Expand Down Expand Up @@ -49,7 +49,7 @@ impl Projector<RegularSpace<Continuous>> for Polynomial {
scaled_state.iter().zip(exps).map(|(v, e)| v.powi(*e)).product()
});

Projection::Dense(Array1::from_iter(activations))
Projection::Dense(Vector::from_iter(activations))
}

fn dim(&self) -> usize {
Expand Down

0 comments on commit 79d4426

Please sign in to comment.