File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ ## Installing Keras framework
2
+
3
+ ### Using spack
4
+
5
+ ```
6
+ # Install the keras python tools
7
+ spack install py-keras ^py-theano +gpu
8
+
9
+ # Also include opencv with python support
10
+ spack install [email protected] +python
11
+
12
+ # Install iPython so that you can play interactively
13
+ spack install py-ipython
14
+
15
+ # Add matplotlib with image support
16
+ spack install py-matplotlib +image
17
+ ```
18
+
19
+ #### Activating Spack
20
+
21
+ ```
22
+ # Activate all of these tools in the spack python environment
23
+ spack activate ipython
24
+ spack activate py-ipython
25
+ spack activate py-keras
26
+ spack activate py-matplotlib
27
+
28
+ # Load the ipython environment into your path
29
+ module avail
30
+ module load py-ipython-5.1.0-gcc-4.9.3
31
+
32
+ # Lauch ipython and then run the example
33
+ ipython
34
+ [1]: run p2b1_baseline_keras1.py
35
+ ```
You can’t perform that action at this time.
0 commit comments