class_docstr: Restricted  Boltzmann Machine
class_docstr_tok: ["Restricted","Boltzmann","Machine"]
docstr: Initialize metrics
docstr_tok: ["Initialize","metrics"]
code: def init_metrics(self):
      """Initialize metrics"""
  
      if (
          self.with_metrics
      ):  # if true (default) returns evaluation metrics
          self.rmse = tf.sqrt(
              tf.compat.v1.losses.mean_squared_error(
                  self.v, self.v_k, weights=tf.where(self.v > 0, 1, 0)
              )
          )
  
imports: import numpy
  import tensorflow
  import logging
  import os
  from pathlib import Path
label_desc: Use image node_id 14 for calling the RBM obj's underlying member method code with example usage: obj.init_metrics() without return types