Jump to content

File:Ann dependency (graph).svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Original file (SVG file, nominally 178 × 127 pixels, file size: 151 KB)

2013-04-01 11:38:23

Description
English: Dependency graph for an artificial neural network
Date
Source Vector version of File:Ann dependency graph.png
Author Glosser.ca
SVG development
InfoField
 
The SVG code is valid.
 
This vector image was created with Asymptote by dvisvgm.
Source code
InfoField

Asymptote code

size(5cm);
import graph;

pair circleEdge(real radius, pair p1, pair p2) {
    return p2 - radius*unit(p2 - p1);
}

void drawArrow(real radius, pair p1, pair p2) {
    pair hshift = (radius, 0),
    initial = p1 + hshift, final = circleEdge(radius, initial, p2);
    draw(initial--final, Arrow);
}


int dx = 4, dy = 2;
int radius = 1;

pair x0 = (0,0),
     h1 = (dx, 2*dy), h2 = (dx,0), h3 = (dx, -2*dy),
     g1 = (2*dx, dy), g2 = (2*dx, -dy),
     f0 = (3*dx, 0);

draw(Circle(x0, radius)); label("$x$", x0);

draw(Circle(h1, radius)); label("$h_1$", h1);
draw(Circle(h2, radius)); label("$h_2$", h2);
draw(Circle(h3, radius)); label("$h_3$", h3);

draw(Circle(g1, radius)); label("$g_1$", g1);
draw(Circle(g2, radius)); label("$g_2$", g2);

draw(Circle(f0, radius)); label("$f$", f0);


drawArrow(radius, x0, h1);
drawArrow(radius, x0, h2);
drawArrow(radius, x0, h3);

drawArrow(radius, h1, g1);
drawArrow(radius, h2, g1);
drawArrow(radius, h2, g2);
drawArrow(radius, h3, g2);

drawArrow(radius, g1, f0);
drawArrow(radius, g2, f0);

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

1 April 2013

image/svg+xml

b9aa82c2a28bb492308fc4c57585238ec2717c28

154,437 byte

127 pixel

178 pixel

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current15:40, 1 April 2013Thumbnail for version as of 15:40, 1 April 2013178 × 127 (151 KB)RayhemUser created page with UploadWizard

Global file usage

The following other wikis use this file:

Metadata