ChanServ changed the topic of #mlpack to: "mlpack: a fast, flexible machine learning library :: We don't always respond instantly, but we will respond; please be patient :: Logs at http://www.mlpack.org/irc/
zoq_ has joined #mlpack
amber11 has joined #mlpack
amber11 has quit [Quit: Ping timeout (120 seconds)]
ZhC has joined #mlpack
ImQ009 has joined #mlpack
ZhC has quit [Quit: Connection closed]
rcurtin[m]1 has quit [Quit: Idle for 30+ days]
< kaushal[m]>
<kaushal[m] "while trying to run examples "> I am still getting these even after compiling boost rebuilding mlpack from source
< kaushal[m]>
<kaushal[m] "while trying to run examples "> hey Aakash kaushik (Gitter) I am still getting same errors even after compiling boost and rebuilding mlpack from source
< AakashkaushikGit>
Can you let me know which example are you trying to run, i can try it on my machine
< kaushal[m]>
lstm_stock_prediction
< kaushal[m]>
I tried everything u guys told me
< kaushal[m]>
but it doesn't seem to solve my problem
< kaushal[m]>
well I was thinking
< kaushal[m]>
do i need to link the boost module to bashrc profile
< kaushal[m]>
like to linking to compiler paths and linked paths
< NippunSharmaGitt>
Hi. I was building go bindings from source. I passed `-DBUILD_GO_BINDINGS=ON` to cmake and then ran `make`. It builds without any errors. But when I try to `import mlpack.org/v1/mlpack` it is not able to identify the package (I also tried make install but that did not change anything). Is there anything else that I have to do ?
< NippunSharmaGitt>
sorry read it as `import "mlpack.org/v1/mlpack"
< jonpsy[m]>
<rcurtin[m] "PYTHONPATH doesn't get set autom"> Correct me if I'm wrong, but docs say "mlpack Python binding should be automatically in your PYTHONPATH and importing mlpack functionality into ... "
< jonpsy[m]>
In README.md
< rcurtin[m]>
if you install, yes:
< rcurtin[m]>
> If mlpack is installed to the system ...
< jonpsy[m]>
with cmake python binds ON + make install, right?
< rcurtin[m]>
yes, right; but if you have just built mlpack in a build directory, then nothing special happens with PYTHONPATH and you will have to set PYTHONPATH manually if you want to use the mlpack Python bindings from the build directory without installing them
< jonpsy[m]>
If I do cmake go bindings ON + make install
< jonpsy[m]>
Will that work the same way?
< jonpsy[m]>
because she tried make install as well
< rcurtin[m]>
I'm not sure how `make install` works for the Go bindings... generally we did not expect users to do that, since it is much easier to install via `go get` (through the mlpack-go repository)
< rcurtin[m]>
if `make install` should work differently for the Go bindings, definitely feel free to open an issue or a PR to fix it 👍️
< rcurtin[m]>
whenever I've used the Go bindings after hand-building them, I have always just set `GOPATH` to include the build directory of wherever I built them
< NippunSharmaGitt>
isn't the GOPATH automatically set while installing ?
< jonpsy[m]>
Thanks for clarifying. Yes, I think it'll be a nice feature to automatically set corresponding PATH(in our case Go) variable when doing make install. I think Nippun Sharma (Gitter) would be interested in that, it's her domain :)
< rcurtin[m]>
setting the system GOPATH during installation doesn't make sense---instead, we probably need to figure out how to install the bindings to whatever the GOPATH is already set to
< rcurtin[m]>
you can take a look at how we do it for python---if I remember right, we take a guess at what the system PYTHONPATH is before calling `setup.py install`
< rcurtin[m]>
and then also provide a CMake option so that the user can specify where they want the Python bindings to be installed
< rcurtin[m]>
so you can see that we use the `PYTHON_INSTALL_PREFIX` CMake variable or `DESTDIR` environment variable if it's set
< rcurtin[m]>
in that case, the install script has to be a separate CMake script because we need to invoke the setuptools installer, but for Go we can probably use more "normal" `install()` CMake commands in the main `CMakeLists.txt`
< rcurtin[m]>
I am not a Go expert so it's always possible that things can be improved; my suggestions may not be the best way possible of course 😃
< rcurtin[m]>
Yashwant wrote the Go support, so you could ping him if you had more questions... I'm about at the limit of my knowledge here 😃
< jonpsy[m]>
Cool, I think all this would be pretty helpful for Nippun Sharma (Gitter)
< jonpsy[m]>
By the way, guess what? I'm adding ZDT Test suite!
< rcurtin[m]>
👍️ I saw that (didn't have a chance to look into it at all though)
< NippunSharmaGitt>
@rcurtin @jonpsy I am pretty new to GO also.. but the comments seem very helpful.. I will tell if I get any success. Thanks
< RiturajDuttaGitt>
When I try to run the example program of mlpack I got a ton of error specifically stating undefined reference and lastly collect2: error: ld returned 1 exit status
< rcurtin[m]>
Rituraj Dutta (Gitter): what have you done to try to debug the issue?
< rcurtin[m]>
yes, that's how you produced the issue, but what have you done to try to debug it?
< RiturajDuttaGitt>
I was going according to the docs and it didn't mention anything except that mlpack has itself a debugging log which I also I'm unable to compile
< RiturajDuttaGitt>
Is it a linker issue
< rcurtin[m]>
have you looked into what the `undefined reference` errors might mean?
< RiturajDuttaGitt>
undefined reference generally occurs when none of the object files I'm trying to link contains a definition
< RishabhGargGitte>
know what do you think about it.
< RishabhGargGitte>
**I am not at all familiar with
< rcurtin[m]>
yes, exactly, we use four `double`s so that the compiler can easily generate instructions to perform each step of the loop all at once
< rcurtin[m]>
SIMD is "single instruction multiple data", so you can think of it a little bit like parallelism
< rcurtin[m]>
so, e.g., a SIMD add will add together 8 elements to produce 4 outputs, in (basically) the same time it takes a non-SIMD add to add together 2 elements to produce 1 output
< rcurtin[m]>
but in order to get the compiler to produce SIMD instructions, you have to be pretty careful about the types you are using and how they are aligned
< rcurtin[m]>
so in this case, we need to keep all four elements in the `double[]`, otherwise the compiler will not generate the much faster SIMD instructions
< RishabhGargGitte>
Okay, just to make sure I am following you, if we change `double accWeights[4]` to `double accWeights` then the compiler will not leverage SIMD for the `count`, `count2`, `count3` and `count4. Right ?
< rcurtin[m]>
yes, exactly 👍️
< rcurtin[m]>
if you have some time and interest, SIMD is really cool and worth learning about if you like low-level optimization
< RishabhGargGitte>
Okay. Thanks :). It was a completely new concept for me. I will surely explore it a bit more.
< RishabhGargGitte>
Thanks. I will look at it. :+1:
Prince53 has quit [Ping timeout: 240 seconds]
< kaushal[m]>
hey I am trying to build python bindings but it's not able to build it
< kaushal[m]>
its saying pandas not found
< kaushal[m]>
whereas I have already installed pandas
< RishabhGargGitte>
if you are on a UNIX operating system then try installing `python-pandas`. It should probably work.
< kaushal[m]>
ubuntu
< kaushal[m]>
<RishabhGargGitte "if you are on a UNIX operating s"> it says ,can locate module
jayant has joined #mlpack
jayant has quit [Client Quit]
< rcurtin[m]>
hey Hemal Mamtora , is the cereal version new enough? you can check with `apt-cache policy libcereal-dev`
< RiturajDuttaGitt>
Okay so I have two version of mlpack in my system 3.2 and 3.4 that's why it was getting troublesome. So now how do I remove the other version
< RiturajDuttaGitt>
@matrixbot
< rcurtin[m]>
Hemal Mamtora: I see, are you building in a clean build directory?
< zoq_>
RiturajDuttaGitt: Just remove the header files and lib.
< rcurtin[m]>
maybe remove `CMakeCache.txt` and try configuring with cmake again? based on what you said, CMake should be able to successfully find cereal
zoq_ is now known as zoq
< jonpsy[m]>
Hey rcurtin
< jonpsy[m]>
I've always wondered why ```MatType``` is used for population in ensmallen modules. We're sure they're points right?
< rcurtin[m]>
sure, but what type of point? it could be an `arma::Mat<float>`, `arma::mat`, `arma::sp_mat`, ...
< RiturajDuttaGitt>
Thanks @matrixbot finally able to run mlpack :))
< rcurtin[m]>
what is the CMake output that was printed when you tried to configure? I'm not sure the output you pasted is related
< RiturajDuttaGitt>
Just added the flag -L/usr/local/lib/ as mentioned in issue #2709
< kaushal[m]>
<RiturajDuttaGitt "Thanks @matrixbot finally able t"> were u able to run the mlpack programs in the examples folder , like the lstm_stock_prediction
< rcurtin[m]>
is `cereal/cereal.hpp` in `/usr/include/`? Maybe you could just manually specify `-DCEREAL_INCLUDE_DIR=/usr/include/cereal/`...
< kaushal[m]>
hey rcurtin when trying to download all the datasets for the examples folder of mlpack using ./download_data_set.py it shows no tqdm module found , even after installing tqdm module , please help
< rcurtin[m]>
I'm really sorry @kaushal07:matrix.org , I don't have the time to help debug each issue
< kaushal[m]>
ok but I have been facing the issue in running this examples folder for 4 days
< kaushal[m]>
maybe a little suggestion
< kaushal[m]>
hey Hemal Mamtora I am rebuilding mlpack now so I will paste the error log after some time
< kaushal[m]>
well i have python 3.8 and pip3
< jonpsy[m]>
<rcurtin[m] "sure, but what type of point? i"> Thanks for this!
ImQ009 has quit [Quit: Leaving]
brongulusGitter[ has joined #mlpack
< brongulusGitter[>
Install the `tqdm` module for python?