This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Diagnostics; | |
using System.Dynamic; | |
using System.IO; | |
using System.Linq; | |
using System.Xml; | |
using System.Xml.Linq; | |
namespace ConsoleApplication3 | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Management; | |
using System.Text; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
class MLP (object): | |
""" | |
3 Layered Perceptron | |
""" | |
def __init__( self, n_input_units , n_hidden_units, n_output_units): | |
self.nin = n_input_units | |
self.nhid = n_hidden_units | |
self.nout = n_output_units |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using NumNet; | |
namespace MatrixNN | |
{ | |
class Program | |
{ | |
static void Main() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace HandWriteNN | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
double lr = 0.1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace HandWriteNN2 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
double lr = 0.1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from chainer import cuda | |
from chainer import optimizers | |
import chainer | |
import chainer.functions as F | |
import data | |
import numpy as np | |
import time | |
import six |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from chainer import Function, Variable, optimizers | |
from chainer import Chain | |
import chainer.functions as F | |
import chainer.links as L | |
class NN(Chain): | |
def __init__(self): | |
initial_W1 = np.array([[[[1.0, 0.5,0.0],[0.5, 0.0,-0.5],[0.0, -0.5,-1.0]]], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private const int WM_GESTURE = 0x0119; | |
protected override void WndProc(ref Message m) | |
{ | |
switch (m.Msg) | |
{ | |
case WM_GESTURE: | |
m.Result = IntPtr.Zero; | |
break; | |
default: | |
base.WndProc(ref m); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[DllImport("user32")] | |
[return: MarshalAs(UnmanagedType.Bool)] | |
private static extern bool SetGestureConfig(IntPtr hWnd, int dwReserved, int cIDs, ref Gestureconfig pGestureConfig, int cbSize); | |
[StructLayout(LayoutKind.Sequential)] | |
private struct Gestureconfig | |
{ | |
public int dwID; | |
public int dwWant; | |
public int dwBlock; |
OlderNewer