텐서플로우:: 작전:: 히스토그램고정 너비

#include <math_ops.h>

값의 히스토그램을 반환합니다.

요약

텐서 values 주어지면 이 작업은 모든 빈에 속하는 values 의 항목 수를 계산하는 순위 1 히스토그램을 반환합니다. Bin은 너비가 동일하며 value_rangenbins 인수에 의해 결정됩니다.

# Bins will be:  (-inf, 1), [1, 2), [2, 3), [3, 4), [4, inf)
nbins = 5
value_range = [0.0, 5.0]
new_values = [-1.0, 0.0, 1.5, 2.0, 5.0, 15]

with tf.get_default_session() as sess:
  hist = tf.histogram_fixed_width(new_values, value_range, nbins=5)
  variables.global_variables_initializer().run()
  sess.run(hist) => [2, 1, 1, 0, 2]

인수:

  • 범위: 범위 개체
  • 값: 숫자 Tensor .
  • value_range: Shape [2] values 와 동일한 dtypeTensor . 값 <= 값 범위[0]은 hist[0]에 매핑되고, 값 >= 값 범위[1]은 hist[-1]에 매핑됩니다.
  • nbins: 스칼라 int32 Tensor . 히스토그램 저장소의 수입니다.

보고:

  • Output : 값의 히스토그램을 보유하는 1차원 Tensor .

생성자와 소멸자

HistogramFixedWidth (const :: tensorflow::Scope & scope, :: tensorflow::Input values, :: tensorflow::Input value_range, :: tensorflow::Input nbins)
HistogramFixedWidth (const :: tensorflow::Scope & scope, :: tensorflow::Input values, :: tensorflow::Input value_range, :: tensorflow::Input nbins, const HistogramFixedWidth::Attrs & attrs)

공개 속성

operation
out

공공 기능

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

공개 정적 함수

Dtype (DataType x)

구조체

텐서플로우:: ops:: HistogramFixedWidth:: 속성

HistogramFixedWidth 에 대한 선택적 속성 설정자입니다.

공개 속성

작업

Operation operation

밖으로

::tensorflow::Output out

공공 기능

히스토그램고정 너비

 HistogramFixedWidth(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input values,
  ::tensorflow::Input value_range,
  ::tensorflow::Input nbins
)

히스토그램고정 너비

 HistogramFixedWidth(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input values,
  ::tensorflow::Input value_range,
  ::tensorflow::Input nbins,
  const HistogramFixedWidth::Attrs & attrs
)

마디

::tensorflow::Node * node() const 

연산자::텐서플로우::입력

 operator::tensorflow::Input() const 

연산자::텐서플로우::출력

 operator::tensorflow::Output() const 

공개 정적 함수

Dtype

Attrs Dtype(
  DataType x
)