https://github.com/buaadreamer/nnplayer

A Toy Nerual Network Framework 自制神经网络框架

https://github.com/buaadreamer/nnplayer

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (2.8%) to scientific vocabulary

Keywords

deeplearning deeplearning-framework machine-learning nerual-network nn
Last synced: 5 months ago · JSON representation

Repository

A Toy Nerual Network Framework 自制神经网络框架

Basic Info
  • Host: GitHub
  • Owner: BUAADreamer
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 23.4 KB
Statistics
  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
deeplearning deeplearning-framework machine-learning nerual-network nn
Created almost 4 years ago · Last pushed almost 4 years ago
Metadata Files
Readme

README.md

Introduction

This repo is a Nerual Network Framework for learning Deep-Learning and Machine-Learning.

This framework refers to PyTorch's Design and Usage.

Usage

```python import nnplayer as npl import numpy as np

build net

net = npl.Sequence(npl.Linear(10, 6), npl.Sigmoid(), npl.Linear(6, 4), npl.Sigmoid())

calculate loss

loss = npl.MSELoss(net)

optimizer

optimizer = npl.SGD(net.getParamsList())

build the dataset

X = np.arange(40).reshape(4, 10) Y = np.arange(16).reshape(4, 4)

train

epoch = 100 for i in range(epoch): Ypredict = net.forward(X) l = loss.loss(Ypredict, Y) print(f'epoch{i + 1} loss:{l.mean()}') loss.backward() optimizer.step() l = loss.loss(net.forward(X), Y) print(l.mean()) ```

Owner

  • Login: BUAADreamer
  • Kind: user
  • Location: Beijing
  • Company: Beihang University

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: 9 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels