|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unikassel.android.sdcframework.util.ObservableEventSourceImpl<ObservableProgressData>
org.android.activityminer.logic.classification.ModelCreationHelper
public class ModelCreationHelper
A class to delegate model creation to.
Field Summary | |
---|---|
private Configuration |
config
The current configuration. |
private Context |
context
The application context. |
private DBManager |
dbManager
A reference to the database manager. |
private String |
lastError
The last error |
private android.support.v4.util.LongSparseArray<List<Long>> |
mapSelectedClassId2SampleIds
A map to store sample (feature vector) identifiers for the selected lass identifiers |
private String |
modelName
The model name |
private PMML |
pmmlModel
The created PMML model. |
private int |
progress
The current progress. |
private ObservableProgressData |
progressData
The observable progress data |
private int |
sampleCount
Progress increment for standard operations like partitioning and data loading. |
private boolean |
succeeded
The success state flag |
private Set<TrainingActivity> |
trainingActivites
The training activities for evaluation. |
Constructor Summary | |
---|---|
ModelCreationHelper(DBManager dbManager,
Configuration config,
String modelName,
Context context)
Constructor |
Method Summary | |
---|---|
boolean |
createModel()
Does run the model creation |
String |
getLastError()
Getter for the last error |
int |
getMaxProgress()
Getter for the maximum progress |
Object |
getModelName()
Getter for the model name |
String |
getStartProgressMessage()
Getter for the start progress message |
boolean |
hasSucceeded()
Getter for the success flag |
android.support.v4.util.LongSparseArray<String> |
loadSamples(Set<FeatureTypes> visibleAttributes)
Does load available samples as feature vectors from DB and creates the partitioning for k-fold cross validation. |
boolean |
saveModel()
Method to store model. |
void |
updateProgress(String msg)
Does publish the current progress with the given message. |
Methods inherited from class de.unikassel.android.sdcframework.util.ObservableEventSourceImpl |
---|
getObservers, hasObservers, notify, onObserverRegistration, onObserverUnregistration, registerEventObserver, removeAllObservers, unregisterEventObserver |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final DBManager dbManager
private Configuration config
private int sampleCount
private Set<TrainingActivity> trainingActivites
private final ObservableProgressData progressData
private int progress
private boolean succeeded
private String lastError
private final String modelName
private final android.support.v4.util.LongSparseArray<List<Long>> mapSelectedClassId2SampleIds
private final Context context
private PMML pmmlModel
Constructor Detail |
---|
public ModelCreationHelper(DBManager dbManager, Configuration config, String modelName, Context context)
dbManager
- a reference to the database managerconfig
- the current configurationmodelName
- the model namecontext
- the application contextMethod Detail |
---|
public final boolean hasSucceeded()
public final String getLastError()
public final int getMaxProgress()
public final boolean createModel()
public final boolean saveModel()
public final android.support.v4.util.LongSparseArray<String> loadSamples(Set<FeatureTypes> visibleAttributes) throws Exception
visibleAttributes
- the visible attributes
Exception
public final void updateProgress(String msg)
msg
- the progress messagepublic String getStartProgressMessage()
public Object getModelName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |