Пример #1
0
 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;
 }
Пример #2
0
        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;
        }
Пример #3
0
        public void AddRuntimeFeaturePlacehold(int i, int offsetToCurentState, int posInSparseVector,
                                               int startInDimension)
        {
            var r = new PriviousLabelFeature
            {
                OffsetToCurrentState   = offsetToCurentState,
                StartInDimension       = startInDimension,
                PositionInSparseVector = posInSparseVector
            };

            RuntimeFeatures[i] = r;
        }
Пример #4
0
        public void SetRuntimeFeature(int i, int offset, float v)
        {
            PriviousLabelFeature f = RuntimeFeatures[i];

            SparseFeature.ChangeValue(f.PositionInSparseVector, f.StartInDimension + offset, v);
        }