<jupyter_start><jupyter_text>Visualization of Model Architecture<jupyter_code>resnet_50 = torch.hub.load("pytorch/vision", "resnet50")

show_model(re)<jupyter_output>Using cache found in /home/marcel/.cache/torch/hub/pytorch_vision_master<jupyter_text>Training Neural Networks<jupyter_code>from sklearn.datasets import fetch_openml

X, y = fetch_openml('mnist_784', return_X_y=True, as_frame=False)
# https://www.kaggle.com/pinocookie/pytorch-simple-mlp
class MLP(nn.Module):
    def __init__(self):
        super(MLP, self).__init__()
        self.layers = nn.Sequential(
            nn.Linear(784, 100),
            nn.ReLU(),
            nn.Linear(100, 10)
        )
        
    def forward(self, x):
        # convert tensor (128, 1, 28, 28) --> (128, 1*28*28)
        x = x.view(x.size(0), -1)
        x = self.layers(x)
        return x

simple_mlp = MLP()
train()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13762486126526083, 'fraction_numerical': 0.03995560488346282, 'mean_word_length': 3.295238095238095, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 9, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '62802', 'license': 'Apache-2.0', 'n_tokens_mistral': 363, 'n_tokens_neox': 340, 'n_words': 56, 'path': 'examples/getLearningRate.ipynb', 'repo_name': 'Pipboyguy/Plasma', 'size': '901'}