mkdocs_demo.lib.superfluous ¶
This module contains additional trivial filler code.
TestClass ¶
Bases: object
The TestClass is a basic Python class.
Parameters¶
num_features : int The num_features parameter represents the number of input features in your model. It indicates the size of the input layer of your neural network.
hidden_layers : int The hidden_layers parameter represents the number of hidden layers in a neural network.
Source code in src/mkdocs_demo/lib/superfluous.py
get_type staticmethod ¶
get_type() -> Literal['Neural Network']
The method get_type returns the string "Neural Network".
Returns¶
Literal The string "Neural Network".
Source code in src/mkdocs_demo/lib/superfluous.py
load_model classmethod ¶
The method load_model loads a model from a given path and returns a string indicating the path from which the model was loaded.
Parameters¶
path : Path | str The path parameter is the path to the model file that needs to be loaded. It can be either a string or a Path object.
Returns¶
str A string that indicates the path from which the model was loaded.
Source code in src/mkdocs_demo/lib/superfluous.py
show_model ¶
The method show_model returns a dictionary containing the model type and information about its layers.
Returns¶
dict[str, str | int] A dictionary containing the model type and the layers of the model.
Source code in src/mkdocs_demo/lib/superfluous.py
Trolling ¶
Bases: ITrolling
The class Trolling implements the ITrolling interface.
Parameters¶
x : float The parameter x is a float, which means it can hold decimal values. It is used to store a numerical value.
n : int The parameter n is an integer that represents the number of iterations or steps in a process.
Source code in src/mkdocs_demo/config/interfaces.py
multiple property ¶
multiple: float
The function calculates the product of the variables x and n.
Returns¶
float The product of self.x and self.n.
from_dict classmethod ¶
The function from_dict takes a dictionary as input, checks if it contains the required keys, and returns an instance of the class with the dictionary values as arguments.
Parameters¶
d : dict[str, int] The parameter d is a dictionary with string keys and integer values.
Returns¶
Self The method is returning an instance of the class itself with the attributes specified in the dictionary d.
Source code in src/mkdocs_demo/lib/superfluous.py
create_trolling ¶
The function create_trolling takes a dictionary d and returns a Trolling object created from the dictionary.
Parameters¶
d : dict[str, int] A dictionary containing the data needed to create a Trolling object. The keys of the dictionary are strings representing the attributes of the Trolling object, and the values are integers representing the values of those attributes.
Returns¶
Trolling An instance of the class Trolling.