GithubHelp home page GithubHelp logo

hhy5277 / learning-notes-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ceruleanacg/learning-notes

0.0 1.0 0.0 1.92 MB

๐Ÿ’ก Repo of learning notes in DRL and DL, theory, codes, models and notes maybe.

License: MIT License

Python 4.94% Jupyter Notebook 95.06%

learning-notes-1's Introduction

License Platform Python

Learning Notes of DRL & DL

A repo of Learning notes of DRL & DL, theory, codes, models and notes maybe.

Content

Notes

Deep Learning Basic

Natural Language Processing

Deep Reinforcement Learning

Deep Learning Engineering

Docker

Codes

Requirements

  • numpy
  • scipy
  • sklearn
  • matplotlib
  • tensorflow==1.8

Instructions for codes

  1. Load your data, for example, iris data set.
from sklearn.datasets import load_iris
iris = load_iris()
  1. Standardize your data.
scaler = StandardScaler()
scaler.fit(iris.data)

x_data = scaler.transform(iris.data)
y_data = np.zeros((150, 3))
y_data[np.arange(150), iris.target] = 1
  1. Initialize activations, which are configurable.
activation_funcs = [function.relu] * 1
# activation_funcs = [function.tanh] * 1
# activation_funcs = [function.sigmoid] * 1
activation_funcs.append(function.linear)
  1. Initialize model, option parameters are configurable.
dense = Dense(x_space=4, y_space=3, neuron_count_list=[10], **{
    "loss_func": function.softmax_cross_entropy,
    "activation_funcs": activation_funcs,
    "learning_rate": 0.01,
    "enable_logger": True,
    "model_name": 'iris',
    "batch_size": 30,
    'model': 'train'
)
  1. Train or Restore & Evaluate.
dense.train(x_data, y_data)
# dense.restore()
dense.evaluate(x_data, y_data)

learning-notes-1's People

Contributors

ceruleanacg avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.