memoiry / LightML.jl

Minimal and clean examples of machine learning algorithms implemented in Julia
Other
403 stars 69 forks source link

Document or fetch all prerequisites #3

Closed rickhg12hs closed 7 years ago

rickhg12hs commented 7 years ago

It's expected that there are some prerequisites, and it would be nice if there were no errors when first trying to use LightML.jl.

My Pkg.clone(... completed without error, but the first using LightML failed after building several packages and then couldn't locate sklearn.

 $ ./julia 
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.5.1 (2017-03-05 13:25 UTC)
 _/ |\__'_|_|_|\__'_|  |  
|__/                   |  x86_64-redhat-linux

julia> Pkg.clone("https://github.com/memoiry/LightML.jl")
INFO: Cloning LightML from https://github.com/memoiry/LightML.jl
INFO: Computing changes...
INFO: Cloning cache of AxisAlgorithms from https://github.com/timholy/AxisAlgorithms.jl.git
INFO: Cloning cache of Clustering from https://github.com/JuliaStats/Clustering.jl.git
INFO: Cloning cache of Compose from https://github.com/GiovineItalia/Compose.jl.git
INFO: Cloning cache of Conda from https://github.com/JuliaPy/Conda.jl.git
INFO: Cloning cache of Contour from https://github.com/tlycken/Contour.jl.git
INFO: Cloning cache of DiffBase from https://github.com/JuliaDiff/DiffBase.jl.git
INFO: Cloning cache of Distances from https://github.com/JuliaStats/Distances.jl.git
INFO: Cloning cache of DualNumbers from https://github.com/JuliaDiff/DualNumbers.jl.git
INFO: Cloning cache of FixedSizeArrays from https://github.com/SimonDanisch/FixedSizeArrays.jl.git
INFO: Cloning cache of ForwardDiff from https://github.com/JuliaDiff/ForwardDiff.jl.git
INFO: Cloning cache of Gadfly from https://github.com/GiovineItalia/Gadfly.jl.git
INFO: Cloning cache of Hexagons from https://github.com/GiovineItalia/Hexagons.jl.git
INFO: Cloning cache of Interpolations from https://github.com/JuliaMath/Interpolations.jl.git
INFO: Cloning cache of Iterators from https://github.com/JuliaCollections/Iterators.jl.git
INFO: Cloning cache of KernelDensity from https://github.com/JuliaStats/KernelDensity.jl.git
INFO: Cloning cache of LaTeXStrings from https://github.com/stevengj/LaTeXStrings.jl.git
INFO: Cloning cache of LineSearches from https://github.com/JuliaNLSolvers/LineSearches.jl.git
INFO: Cloning cache of Loess from https://github.com/JuliaStats/Loess.jl.git
INFO: Cloning cache of Measures from https://github.com/JuliaGraphics/Measures.jl.git
INFO: Cloning cache of NaNMath from https://github.com/mlubin/NaNMath.jl.git
INFO: Cloning cache of NearestNeighbors from https://github.com/KristofferC/NearestNeighbors.jl.git
INFO: Cloning cache of Optim from https://github.com/JuliaNLSolvers/Optim.jl.git
INFO: Cloning cache of PositiveFactorizations from https://github.com/timholy/PositiveFactorizations.jl.git
INFO: Cloning cache of PyCall from https://github.com/JuliaPy/PyCall.jl.git
INFO: Cloning cache of PyPlot from https://github.com/JuliaPy/PyPlot.jl.git
INFO: Cloning cache of Ratios from https://github.com/timholy/Ratios.jl.git
INFO: Cloning cache of Showoff from https://github.com/JuliaGraphics/Showoff.jl.git
INFO: Cloning cache of StaticArrays from https://github.com/JuliaArrays/StaticArrays.jl.git
INFO: Cloning cache of WoodburyMatrices from https://github.com/timholy/WoodburyMatrices.jl.git
INFO: Installing AxisAlgorithms v0.1.6
INFO: Installing Clustering v0.7.0
INFO: Installing ColorTypes v0.3.5
INFO: Installing Colors v0.7.3
INFO: Installing Compose v0.4.5
INFO: Installing Conda v0.5.2
INFO: Installing Contour v0.2.0
INFO: Installing DiffBase v0.1.0
INFO: Installing Distances v0.4.1
INFO: Installing DualNumbers v0.3.0
INFO: Installing FixedPointNumbers v0.3.5
INFO: Installing FixedSizeArrays v0.2.5
INFO: Installing ForwardDiff v0.4.1
INFO: Installing Gadfly v0.6.0
INFO: Installing Hexagons v0.0.4
INFO: Installing Hiccup v0.1.1
INFO: Installing Interpolations v0.3.8
INFO: Installing Iterators v0.3.0
INFO: Installing JSON v0.8.3
INFO: Installing Juno v0.2.7
INFO: Installing KernelDensity v0.3.2
INFO: Installing LaTeXStrings v0.2.0
INFO: Installing LineSearches v0.1.5
INFO: Installing Loess v0.1.0
INFO: Installing MacroTools v0.3.6
INFO: Installing Measures v0.0.3
INFO: Installing Media v0.2.5
INFO: Installing NaNMath v0.2.4
INFO: Installing NearestNeighbors v0.2.0
INFO: Installing Optim v0.7.8
INFO: Installing PositiveFactorizations v0.0.4
INFO: Installing PyCall v1.11.0
INFO: Installing PyPlot v2.3.1
INFO: Installing Ratios v0.0.4
INFO: Installing Showoff v0.0.7
INFO: Installing StaticArrays v0.3.0
INFO: Installing WoodburyMatrices v0.2.2
INFO: Building Conda
INFO: Building Rmath
INFO: Building PyCall
INFO: PyCall is using python (Python 2.7.13) at /usr/bin/python, libpython = /usr/lib64/libpython2.7
INFO: /home/rick/.julia/v0.5/PyCall/deps/deps.jl has been updated
INFO: /home/rick/.julia/v0.5/PyCall/deps/PYTHON has been updated

julia> using LightML
INFO: Precompiling module Gadfly.
INFO: Precompiling module PyCall.
INFO: Precompiling module PyPlot.
/usr/lib64/python2.7/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
INFO: Precompiling module Clustering.
ERROR: LoadError: PyError (:PyImport_ImportModule) <type 'exceptions.ImportError'>
ImportError('No module named sklearn.datasets',)

 in pyerr_check at /home/rick/.julia/v0.5/PyCall/src/exception.jl:56 [inlined]
 in pyerr_check at /home/rick/.julia/v0.5/PyCall/src/exception.jl:61 [inlined]
 in macro expansion at /home/rick/.julia/v0.5/PyCall/src/exception.jl:81 [inlined]
 in pyimport(::String) at /home/rick/.julia/v0.5/PyCall/src/PyCall.jl:392
 in include_from_node1(::String) at ./loading.jl:488
 in eval(::Module, ::Any) at ./boot.jl:234
 in require(::Symbol) at ./loading.jl:415
while loading /home/rick/.julia/v0.5/LightML/src/LightML.jl, in expression starting on line 432

julia> 
memoiry commented 7 years ago

Sorry for that,the problem is arisen as the dataset used to examine the algorithm is from python's sklearn package,you may need to install sklearn through

pip install sklearn

I also have a plan to eliminate the denpendency of python's datasets in todo.md