Skip to content

Commit

Permalink
Categoryencoding (#51)
Browse files Browse the repository at this point in the history
* added reviewer requests
  • Loading branch information
AdamLang96 committed Oct 4, 2022
1 parent 7222f30 commit 1eb6f6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tfjs-layers/src/layers/preprocessing/category_encoding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ export class CategoryEncoding extends Layer {
`countWeights is not used when outputMode !== count.
Received countWeights=${kwargs['countWeights']}`);
}
if (countWeightsArg.rank === 1 || countWeightsArg.rank === 2) {
const countWeights = getExactlyOneTensor(kwargs['countWeights']) as Tensor1D | Tensor2D;
}

countWeights
= getExactlyOneTensor(kwargs['countWeights']) as Tensor1D|Tensor2D;
}

const maxValue = max(inputs);
Expand Down

0 comments on commit 1eb6f6c

Please sign in to comment.