Skip to content

Artificial Intelligence > Machine Learning > Deep Learning

License

Notifications You must be signed in to change notification settings

florist-notes/aicore_n

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Artificial Intelligence (AI) :

✿ here is my mini resource guide on AI > ML > DL:

Artificial Intelligence 🌸

    AI ~ θ|1 💮

+ AI resources [list] 🎃

+ AI tools and libraries [list] 🎃

Deep Learning [theory]

Deep Learning [code]

    import gymnasium as gym
    import math
    import random
    import matplotlib
    import matplotlib.pyplot as plt
    from collections import namedtuple, deque
    from itertools import count

    import torch
    import torch.nn as nn
    import torch.optim as optim
    import torch.nn.functional as F

    env = gym.make("CartPole-v1")

    # set up matplotlib
    is_ipython = 'inline' in matplotlib.get_backend()
    if is_ipython:
        from IPython import display

    plt.ion()

    # if GPU is to be used
    device = torch.device("cuda" if torch.cuda.is_available() else "cpu")