macにdeeplearning4jをinstallする。


# deeplearnig4jのinstall
```
git clone https://github.com/deeplearning4j/deeplearning4j.git
cd deeplearning4j
./setup.sh

```

# dl4j-examplesのinstall + 動作確認

## word2vecの動作確認
```
git clone https://github.com/deeplearning4j/dl4j-0.4-examples.git
cd dl4j-0.4-examples/
mvn package -DskipTests

java -cp ./target/deeplearning4j-examples-0.4-rc0-SNAPSHOT-bin.jar org.deeplearning4j.examples.nlp.word2vec.Word2VecRawTextExample

head -n 2 pathToWriteto.txt 
play 1.6428029630333185E-4 -0.001298513961955905 -0.006189993117004633 0.005958584602922201 -0.004108669236302376 0.006080639082938433 -0.004201414063572884 0.0028068171814084053 -0.0056078783236444 0.0019124940736219287 -1.8172622367274016E-4 -4.2076088720932603E-4 0.010181034915149212 0.001303229946643114 -0.00286839809268713 -0.0022572362795472145 -0.0027351134922355413 -0.003943078685551882 0.0035934746265411377 -0.002288638148456812 0.002843707799911499 0.0037080016918480396 0.004618647042661905 0.002957525197416544 -0.005781021434813738 0.0018765275599434972 0.0018464511958882213 0.003197399666532874 -0.007900998927652836 0.0033140983432531357 -0.00811726599931717 5.747640389017761E-4 3.0151818646118045E-4 -9.236221085302532E-4 0.0036158417351543903 9.82423429377377E-4 0.002391567686572671 0.003270375542342663 0.011101560667157173 6.403031293302774E-4 -0.001327298115938902 0.0019167143618687987 0.007083598989993334 -4.706511681433767E-4 7.411509286612272E-4 0.009336276911199093 -0.005638166330754757 -0.0014039083616808057 0.0033686331007629633 5.802329978905618E-4 -0.006379428319633007 0.0025688146706670523 -5.600957083515823E-4 0.0022293133661150932 0.0036056609824299812 -0.0037035795394331217 -0.005614816676825285 0.0038513371255248785 0.0010371918324381113 0.006597943603992462 2.110604546032846E-4 0.005075426306575537 -7.456549210473895E-4 0.007320326287299395 0.002870537806302309 0.0026680147275328636 -0.0037487326189875603 -0.0014875371707603335 5.950096528977156E-4 0.005652945954352617 0.0050092400051653385 -0.004056390840560198 -0.004698898643255234 -0.004307824186980724 -0.007105169352144003 -0.006279237102717161 6.624792877119035E-5 -0.0017605299362912774 0.004335119854658842 -0.004968299996107817 -5.880850949324667E-4 0.004011823795735836 0.005640281364321709 -3.9693445432931185E-4 -0.003899077884852886 -0.005045564379543066 -0.003727611154317856 -0.002986655803397298 -0.006030331365764141 5.776695325039327E-4 -0.0075770774856209755 -0.0033894323278218508 -5.469885654747486E-4 -0.0023003248497843742 -0.002785797929391265 3.6308003473095596E-5 0.0022171505261212587 0.004353650379925966 0.003051760606467724 0.0011429621372371912
big -0.0015822574496269226 -0.0015508383512496948 -0.003715930040925741 0.002418217249214649 1.8766135326586664E-4 0.003115257481113076 -0.003569460241124034 -0.0017814323073253036 -6.374050863087177E-4 0.0040300264954566956 0.002738859737291932 -0.0045098611153662205 0.0017223083414137363 -3.232568269595504E-4 7.028548279777169E-4 -7.409212994389236E-4 0.0034249741584062576 -5.416581989265978E-4 2.260694745928049E-4 0.005060654599219561 0.0017449094448238611 0.0021390579640865326 -0.0019885264337062836 0.003075532615184784 0.002723683137446642 0.00456906296312809 0.0012261801166459918 -0.001758831785991788 0.001218526973389089 -0.00513746403157711 -0.002041224855929613 0.0013227049494162202 -1.477946643717587E-4 -0.002946823835372925 9.256073972210288E-4 0.004212340340018272 -0.0037874074187129736 2.3277290165424347E-4 0.0015569250099360943 0.0010063849622383714 -0.00343559798784554 0.00460153678432107 -0.0042357067577540874 0.004079695791006088 0.0044091143645346165 5.175601691007614E-4 -0.003646222408860922 -0.0042814151383936405 -1.5329642337746918E-4 -0.004409339744597673 9.328557644039392E-5 -0.003991085570305586 0.0015404501464217901 0.0037030549719929695 0.0018638463225215673 -0.002456588437780738 -1.2046276242472231E-4 -0.0018552984111011028 -0.001330813392996788 -0.003255625255405903 0.0016476711025461555 0.003639410249888897 3.4565184614621103E-4 -0.0030399179086089134 -0.0012155564036220312 0.0030933269299566746 -0.0011598345590755343 9.800804546102881E-4 -0.0023409214336425066 0.0015131267718970776 -8.550070924684405E-4 6.892533856444061E-4 -0.002096532378345728 6.4861960709095E-4 0.002025327645242214 0.00452993530780077 -0.00132496259175241 0.0029054812621325254 -0.001729853916913271 -0.003361831186339259 0.002746013691648841 0.003916239831596613 0.00518458615988493 0.003770128358155489 -0.0015371516346931458 0.0013653028290718794 3.797610988840461E-4 -0.004470486659556627 7.774705300107598E-4 -0.0012975881109014153 -0.002696192590519786 0.002595262136310339 2.466128789819777E-4 -0.004323410801589489 0.001593440305441618 -0.0014184184838086367 0.004409266170114279 -0.0014114018995314837 9.509953670203686E-4 -0.0014206948690116405


```

## LSTMの動作確認

```
java -cp ./target/deeplearning4j-examples-0.4-rc0-SNAPSHOT-bin.jar org.deeplearning4j.examples.recurrent.character.GravesLSTMCharModellingExample

.
.
.
.
--------------------
Completed 170 minibatches of size 32x1000 characters
Sampling characters from network given initialization ""
----- Sample 0 -----
our revenge, let most weach. Of heavy ditters,
    than I meannoms her.
  PISANIO. Your valous if expice thy schake at that in the
    enson'd skifper and Antony. But I loved away your excusation arrow him?
  Prithee. That merly mys unwatch are ral vieson!
    I'll tell you expersal.
  THIRD SHEIPTRO

----- Sample 1 -----
on.
    Nor cry, both her shrike upon thy flood,
    Parsed emed Voldoo, and Dolt Parshohus
    That thou that me, all shall be won to teach him best!
    Where is you storm? come than thy hand!
    How estay itself with de thee ever than dreams,
    And have Quaried Shaili!
                         

----- Sample 2 -----
orct, and what in this offigienting no mover?
    Warwick in wive. Ever. Come, this issue's th' glove
    And Nellow with the King is soor than heavenly
    Than therefore Licent like youth. O, what a man bethink,
    And he has dislabour's ground; let's my dog,
    That makes it inought that at myse

----- Sample 3 -----
ovent on his city in you already;
    That which wakeful in onatinate, nor prayers;
    Saiting him graven i' th' cut of thy age!
    To, not men.
     Ay, welcome, for Jack enough?
  FLUELLEN. Loncouth thou draw here.
FBEMPHITH YORK Crivents Macb.

  Queen. Goviens! There's bols of this her virtuous

o.d.o.l.ScoreIterationListener - Score at iteration 0 is 66.539268655216
o.d.o.l.ScoreIterationListener - Score at iteration 0 is 66.80422894646141
o.d.o.l.ScoreIterationListener - Score at iteration 0 is 67.20537087115119
o.d.o.l.ScoreIterationListener - Score at iteration 0 is 60.4689395608341
o.d.o.l.ScoreIterationListener - Score at iteration 0 is 67.3830871151195
o.d.o.l.ScoreIterationListener - Score at iteration 0 is 63.251546875
o.d.o.l.ScoreIterationListener - Score at iteration 0 is 64.74389267147289
o.d.o.l.ScoreIterationListener - Score at iteration 0 is 62.62669103285845
o.d.o.l.ScoreIterationListener - Score at iteration 0 is 66.91088072294347
o.d.o.l.ScoreIterationListener - Score at iteration 0 is 67.07348055491728
o.d.o.l.ScoreIterationListener - Score at iteration 0 is 65.31102595071232
o.d.o.l.ScoreIterationListener - Score at iteration 0 is 62.41112812356387
o.d.o.l.ScoreIterationListener - Score at iteration 0 is 67.71766158519073
o.d.o.l.ScoreIterationListener - Score at iteration 0 is 61.23231782801011
o.d.o.l.ScoreIterationListener - Score at iteration 0 is 57.66261825022978
o.d.o.l.ScoreIterationListener - Score at iteration 0 is 69.59742618336398
o.d.o.l.ScoreIterationListener - Score at iteration 0 is 68.88367576688879
o.d.o.l.ScoreIterationListener - Score at iteration 0 is 68.51610363769531
o.d.o.l.ScoreIterationListener - Score at iteration 0 is 70.61317008702895
o.d.o.l.ScoreIterationListener - Score at iteration 0 is 67.34871371639477


Example complete

```