Class TitanicUtils
- java.lang.Object
-
- org.apache.ignite.examples.ml.tutorial.TitanicUtils
-
public class TitanicUtils extends java.lang.ObjectThe utility class.
-
-
Constructor Summary
Constructors Constructor Description TitanicUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IgniteCache<java.lang.Integer,Vector>readPassengers(Ignite ignite)Read passengers data from csv file.static IgniteCache<java.lang.Integer,Vector>readPassengersWithoutNulls(Ignite ignite)Read passengers data from csv file.
-
-
-
Method Detail
-
readPassengers
public static IgniteCache<java.lang.Integer,Vector> readPassengers(Ignite ignite) throws java.io.FileNotFoundException
Read passengers data from csv file.- Parameters:
ignite- The ignite.- Returns:
- The filled cache.
- Throws:
java.io.FileNotFoundException- If data file is not found.
-
readPassengersWithoutNulls
public static IgniteCache<java.lang.Integer,Vector> readPassengersWithoutNulls(Ignite ignite) throws java.io.FileNotFoundException
Read passengers data from csv file.- Parameters:
ignite- The ignite.- Returns:
- The filled cache.
- Throws:
java.io.FileNotFoundException- If data file is not found.
-
-