code: public Tensor getFeatureWeightsForClass(Assignment outputClass) {
      int[] classIndexes = getOutputVariables().assignmentToIntArray(outputClass);
      int[] dimensionNums = getOutputVariables().getVariableNumsArray();
  
      return logWeights.slice(dimensionNums, classIndexes);
    }
docs: Returns a vector (1-dimensional tensor) containing the feature weights used
  to predict {@code outputClass}. {@code outputClass} must contain a value
  for every output variable of this factor.
  
  @param outputClass
  @return