Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

scale_to_z_score_per_key does not work with SparseTensors and key_vocabulary_filename is not None

オープン
#250 コメント 1 件 リアクション 1 件 担当者 1 名 GitHub で見る

@zoyahav がすでに取り組んでいます。

2021年11月18日 から。

評価

この issue はまだ評価されていません。

説明

stat:contributions welcome type:bug

If you try to run tft.scale_to_z_score_per_key while passing in SparseTensors for x and key, while also setting key_vocabulary_filename to a value other than None, you will get an error message like:

TypeError: Expected string, got <tensorflow.python.framework.sparse_tensor.SparseTensor object at 0x1a7d5e9a0> of type 'SparseTensor' instead.

This exception ultimately originates from here:

https://github.com/tensorflow/transform/blob/v1.3.0/tensorflow_transform/tf_utils.py#L649

The root cause is that key is a SparseTensor instead of a regular Tensor (key.values needs to be passed in instead of key)

主要言語
Python
スター
989
フォーク
225
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

tensorflow/transform のほかの issue

tensorflow/transform の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。