public void AddRuntimeFeaturePlacehold(int i, int offsetToCurentState, int posInSparseVector, int startInDimension) { PriviousLabelFeature r = new PriviousLabelFeature(); r.OffsetToCurrentState = offsetToCurentState; r.StartInDimension = startInDimension; r.PositionInSparseVector = posInSparseVector; RuntimeFeatures[i] = r; }
public void AddRuntimeFeaturePlacehold(int i, int offsetToCurentState, int posInSparseVector, int startInDimension) { var r = new PriviousLabelFeature { OffsetToCurrentState = offsetToCurentState, StartInDimension = startInDimension, PositionInSparseVector = posInSparseVector }; RuntimeFeatures[i] = r; }
public void SetRuntimeFeature(int i, int offset, float v) { PriviousLabelFeature f = RuntimeFeatures[i]; SparseFeature.ChangeValue(f.PositionInSparseVector, f.StartInDimension + offset, v); }