class_docstr: The base class for a network layer.
      
class_docstr_tok: ["The","base","class","for","a","network","layer","."]
docstr: Freezes or unfreezes the weights.
          
docstr_tok: ["Freezes","or","unfreezes","the","weights","."]
code: def learning_enabled(self, value):
      """Freezes or unfreezes the weights."""
      if value:
          self._internal.enable_learning()
      else:
          self._internal.disable_learning()
  
imports: import neoml.PythonWrapper
  import neoml.Random
label_desc: Use image node_id 4 for calling the Layer obj's underlying member method code with example usage: obj.learning_enabled(value) without return types