コード例 #1
0
ファイル: State.cs プロジェクト: zhangweiabc/RNNSharp
 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
ファイル: State.cs プロジェクト: zli69/RNNSharp
        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);
        }