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/
< rcurtin>
abernauer[m]: yeah, but of course the zoom room is open all the time if you'd like to use it for mlpack discussions or something
< jeffin143[m]>
@shrit:matrix.org: , suppose I want to link against armadillo and mlpack library using cmake
< jeffin143[m]>
But now path could be anything na ?? In different computer the armadillo lib would have different path and same goes with mlpacklib
ImQ009 has joined #mlpack
< jeffin143[m]>
Anyone here who use mac ???
< jeffin143[m]>
Can you check if you /include/google/protobuf/proto_def.ini ??
ImQ009 has quit [Ping timeout: 272 seconds]
togo has joined #mlpack
ImQ009 has joined #mlpack
< kartikdutt18[m]>
Hey jeffin143 , I'm not sure what I need to check.
< jeffin143[m]>
Do you have protobuf I installed
< jeffin143[m]>
Please check whether your include directory have Google directory ?
< kartikdutt18[m]>
Also for the linking against mlpack in cmake, You can copy the FindMLPACK file to CMAKE folder from models repo and use find package in cmake to find mlpack and link it.
< kartikdutt18[m]>
same for armadillo.
< jeffin143[m]>
Oh I see
< jeffin143[m]>
Thanks that
< jeffin143[m]>
Will work out
< kartikdutt18[m]>
Installed protobuf.
< kartikdutt18[m]>
Yes it does.
< kartikdutt18[m]>
* Yes it does have the google directory. This exists : /include/google/protobuf/proto_def.ini
< jeffin143[m]>
How did you install ???
< jeffin143[m]>
Brew install protobuf ?
< kartikdutt18[m]>
Yes.
< jeffin143[m]>
Can you check what is the version ->
< jeffin143[m]>
Are there any matrix client that you are using ??
< jeffin143[m]>
I use irc , and on phone Rio chat
< kartikdutt18[m]>
Great. I use gitter or riot on both devices.
< jeffin143[m]>
@walragatver:matrix.org:
< jeffin143[m]>
Are you there ?
< shrit[m]1>
rcurtin: I have added two commits inspired from your solution considering the raw pointer, it is working now, but this might requires some modification in mlpack database. if you think this solution is good let me know so I can starting testing on mlpack source. I also update the main file to show a basic usage. The overall is good I think ποΈ
< shrit[m]1>
*mlpack sourcebase
< jeffin143[m]>
shrit: do you have some bandwidth to help me with small thing in cmake ??
< jeffin143[m]>
I have wrote this , like this is my issue
< jeffin143[m]>
Not sure how to resolve it
< jeffin143[m]>
The agend is cmake is not able to find the file in /usr/bin/include dir in my Mac , it will only try to find the files in /build/include/
< jeffin143[m]>
Build is the new dir which we create to run cmak ../ and make
< jeffin143[m]>
So like how should I force my cmake to search the computer to find Google/files
< shrit[m]1>
yes I understand
< shrit[m]1>
Did you generated the header with protobuf?
< shrit[m]1>
I suppose it is yes but cmake is looking at the root directory right?
< jeffin143[m]>
Yes I generated it using protobuf , like using grnerate_cpp()
< shrit[m]1>
mlpack already looks for its header in the build directory, so it is being copied there and then you can look for it there
< shrit[m]1>
unless if I am not understanding the issue
< shrit[m]1>
you want to specify the folder to look for headers right?
< jeffin143[m]>
Now it's trying to find a third party library , whereas the link you suggest is our own headers right
< shrit[m]1>
Actually you want cmake to find any third-party library with a specific location right?
jeffin143 has joined #mlpack
< jeffin143[m]>
Yes exactly , but not specific location because different operating system has different deafult installation location , I want it to look at default locations
< jeffin143[m]>
Just a sec , I will show you a thing
< shrit[m]1>
Ok, so the issue is cmake is not looking at the default folder, is only looking at your working directory
< jeffin143[m]>
Yes exactly
< jeffin143[m]>
It is only looking at working directory
< shrit[m]1>
and since protobuf is not natuarrly there it is stick
< shrit[m]1>
*stuck
< jeffin143[m]>
Yes
< jeffin143[m]>
Yup yup
< shrit[m]1>
Good, Actually this is more like feature on mac than Linux, since it is nearly impossible to change the default path on Linux for cmake, so let us try a thing
< shrit[m]1>
(by the way, cmake sucks on paths so it is normal to have this kind of issue)
< jeffin143[m]>
shrit: oh I never knew that
< jeffin143[m]>
That's the reason it passes in Linux and fails on mac
< jeffin143[m]>
> (by the way, cmake sucks on paths so it is normal to have this kind of issue)
< jeffin143[m]>
I have been battling it for a long time
< jeffin143[m]>
And I have seen you work in cmake quite a lot and hence fall back to you :)
< shrit[m]1>
after that you will have to delete everything related to cmake in the build dir and build using cmake .. -DOPTION
< shrit[m]1>
Just try to path the path manually to see if it can be detected
< jeffin143[m]>
Thanks I will try it out
< shrit[m]1>
You can also print CMAKE_INCLUDE_PATH using message() and this will print to the terminal the path the path used by cmake to look for header
< jeffin143[m]>
> You can also print CMAKE_INCLUDE_PATH using message() and this will print to the terminal the path the path used by cmake to look for header
< jeffin143[m]>
This is very helpful
< jeffin143[m]>
I wanted to see whether it is actually the error I am assuming or something else
< jeffin143[m]>
Thanks for your time and all the help :)
< shrit[m]1>
You are welcome
< jeffin143[m]>
> You can also print CMAKE_INCLUDE_PATH using message() and this will print to the terminal the path the path used by cmake to look for header
< jeffin143[m]>
These are empty
< shrit[m]1>
Exactly, it is empty by default if cmake is looking for default pathes
< shrit[m]1>
that means that the default path for darwin (macOS) is not changed
< jeffin143[m]>
@shrit:matrix.org : it is never looking at the path I want
< jeffin143[m]>
I mean /usr/bin/include is the think I want but it never go there
< jeffin143[m]>
I printed the variable and found all the paths where it is looking for header files
< shrit[m]1>
I never used a macOs in mylife, so I do not know the details, but if it is a Unix based cmake should look in /usr/local/include as it says in the docs
< jeffin143>
the deafult path where brew installs the library is /usr/local/cellar
< jeffin143>
and hence that is the issue
< shrit[m]1>
And if you installed manually where does it go?
< jeffin143>
and if you install by source it will get installed in /usr/bin/include
< jeffin143>
that is the whole confusion my laptop had to suffer , Like I have two protobuf when using cmake it will deafult to /cellar one but when I install our library and it fetches it is fetching the include one
< jeffin143>
sorry if it is by source the in /usr/local/include/
< jeffin143>
and if it is by brew then /usr/local/cellar
< jeffin143>
and hence brew doesn't work
< shrit[m]1>
So cmake can find the one with /Cellar but not with the one manually instaled
< jeffin143>
I am not really sure which one will cmake find both are of same version :)
< jeffin143>
I will try to different version and then see
< shrit[m]1>
you can try to add /usr/local/include path for the above paths you have printed, using the same variable I think, (it never worked for me on linux)
jeffin143 has quit [Remote host closed the connection]
MrityunjayTripat has quit [Ping timeout: 240 seconds]
TanayMehtaGitter has quit [Ping timeout: 246 seconds]
nishantkr18[m] has quit [Ping timeout: 252 seconds]
zoq[m] has quit [Ping timeout: 244 seconds]
AbhishekNimje[m] has quit [Ping timeout: 244 seconds]
RishabhGoel[m] has quit [Ping timeout: 244 seconds]
kunal12298Gitter has quit [Ping timeout: 244 seconds]
benpa[m] has quit [Ping timeout: 240 seconds]
robotcatorGitte4 has quit [Ping timeout: 240 seconds]
vigsterkr[m]1 has quit [Ping timeout: 240 seconds]
AniThoGitter[m] has quit [Ping timeout: 244 seconds]
jeffinsamGitter[ has quit [Ping timeout: 244 seconds]
EL-SHREIFGitter4 has quit [Ping timeout: 244 seconds]
OmarWagih1Gitter has quit [Ping timeout: 246 seconds]
UmarGitter[m] has quit [Ping timeout: 252 seconds]
jonpsy[m] has quit [Ping timeout: 252 seconds]
Param-29Gitter[m has quit [Ping timeout: 252 seconds]
Valliappan_CAGit has quit [Ping timeout: 240 seconds]
M_slack_mlpack_U has quit [Ping timeout: 240 seconds]
LolitaNazarov[m] has quit [Ping timeout: 240 seconds]
asadoll[m] has quit [Ping timeout: 240 seconds]
AnjishnuGitter[m has quit [Ping timeout: 240 seconds]
mrmajor[m] has quit [Ping timeout: 240 seconds]
KimSangYeon-DGU[ has quit [Ping timeout: 240 seconds]
siddhant2001Gitt has quit [Ping timeout: 240 seconds]
sy0814kGitter[m4 has quit [Ping timeout: 240 seconds]
maddogx[m] has quit [Ping timeout: 244 seconds]
robertohueso has quit [Ping timeout: 244 seconds]
kritika12298Gitt has quit [Ping timeout: 260 seconds]
himanshu_pathak[ has quit [Ping timeout: 260 seconds]
AbhinavvermaGitt has quit [Ping timeout: 260 seconds]
DivyanshKumar[m4 has quit [Ping timeout: 244 seconds]
SriramSKGitter[m has quit [Ping timeout: 244 seconds]
aoeuiiueoa[m] has quit [Ping timeout: 246 seconds]
GitterIntegratio has quit [Ping timeout: 246 seconds]
Cadair has quit [Ping timeout: 252 seconds]
AryamanBhagatGi4 has quit [Ping timeout: 272 seconds]
DirkEddelbuettel has quit [Ping timeout: 244 seconds]
khimrajGitter[m] has quit [Ping timeout: 244 seconds]
PulkitgeraGitter has quit [Ping timeout: 244 seconds]
birm[m]1 has quit [Ping timeout: 244 seconds]
TrinhNgo[m] has quit [Ping timeout: 244 seconds]
Manav-KumarGitte has quit [Ping timeout: 244 seconds]
TaapasAgrawalGi4 has quit [Ping timeout: 244 seconds]
AbishaiEbenezer4 has quit [Ping timeout: 244 seconds]
yashwants19[m] has quit [Ping timeout: 244 seconds]
PranavReddyP16Gi has quit [Ping timeout: 244 seconds]
ShivamShaurya[m] has quit [Ping timeout: 244 seconds]
JatoJoseph[m] has quit [Ping timeout: 244 seconds]
ZanHuang[m] has quit [Ping timeout: 244 seconds]
SaraanshTandonGi has quit [Ping timeout: 244 seconds]
KumarArnav[m] has quit [Ping timeout: 244 seconds]
jeffin143[m] has quit [Ping timeout: 244 seconds]
Saksham[m] has quit [Ping timeout: 244 seconds]
abernauer[m] has quit [Ping timeout: 256 seconds]
AbdullahKhilji[m has quit [Ping timeout: 256 seconds]
geek-2002Gitter[ has quit [Ping timeout: 246 seconds]
shrit[m]1 has quit [Ping timeout: 246 seconds]
outmanipulateGi4 has quit [Ping timeout: 246 seconds]
kartikdutt18Gitt has quit [Ping timeout: 246 seconds]
GauravTirodkar[m has quit [Ping timeout: 246 seconds]
chopper_inbound[ has quit [Ping timeout: 246 seconds]
bisakh[m]1 has quit [Ping timeout: 246 seconds]
RyanBirminghamGi has quit [Ping timeout: 246 seconds]
PrinceGuptaGitte has quit [Ping timeout: 246 seconds]
RudraPatil[m]1 has quit [Ping timeout: 246 seconds]
RoHitRushilGitte has quit [Ping timeout: 246 seconds]
JoelJosephGitter has quit [Ping timeout: 246 seconds]
AbhinavGudipati[ has quit [Ping timeout: 246 seconds]
AtharvaKhandait4 has quit [Ping timeout: 246 seconds]
KhizirSiddiquiGi has quit [Ping timeout: 246 seconds]
AmeetKumarRanaGi has quit [Ping timeout: 246 seconds]
ChaithanyaNaik[m has quit [Ping timeout: 246 seconds]
jacob-earleGitte has quit [Ping timeout: 246 seconds]
GauravSinghGitte has quit [Ping timeout: 246 seconds]
walragatver[m]1 has quit [Ping timeout: 246 seconds]
sreenik[m] has quit [Ping timeout: 246 seconds]
sailor[m] has quit [Ping timeout: 246 seconds]
SakshamRastogiGi has quit [Ping timeout: 260 seconds]
NishantKumarGitt has quit [Ping timeout: 260 seconds]
mlozhnikov[m] has quit [Ping timeout: 260 seconds]
VSaicharanGitte4 has quit [Ping timeout: 260 seconds]
jjb[m]1 has quit [Ping timeout: 260 seconds]
abhinavgudipatiG has quit [Ping timeout: 260 seconds]
ShikharJaiswalGi has quit [Ping timeout: 260 seconds]
HimanshuPathakGi has quit [Ping timeout: 260 seconds]
YashwantSinghPar has quit [Ping timeout: 260 seconds]
MostafaNabiehGit has quit [Ping timeout: 260 seconds]
eddelbuettel[m] has quit [Ping timeout: 260 seconds]
kartikdutt18[m] has quit [Ping timeout: 260 seconds]
ArunavShandeelya has quit [Ping timeout: 260 seconds]
aadarsh-asthanaG has quit [Ping timeout: 260 seconds]
RohitKartikGitte has quit [Ping timeout: 260 seconds]
anjishnu[m] has quit [Ping timeout: 260 seconds]
saksham189Gitter has quit [Ping timeout: 260 seconds]
walragatver[m] has joined #mlpack
< walragatver[m]>
Hey jeffin143: I am just having one doubt. Why the macos build in other PR is not failing?
< walragatver[m]>
Basically if it would have been a location issue then don't you think the build should fail in other PRs as well?
< walragatver[m]>
> Hey jeffin143: I am just having one doubt. Why the macos build in other PR is not failing?
< walragatver[m]>
The build mechanism is quite same right?
KumarArnav[m] has joined #mlpack
jeffin143[m] has joined #mlpack
< jeffin143[m]>
In case of Linux g++ and cmake is behaving same like following the same convention of path
< jeffin143[m]>
No there is difference between the running two instances , when we are running using normal g++ , our compiler will go to normal include dir , but we we use cmake it will not go to that dir , it will take the default one
< jeffin143[m]>
But I am not sure why that is not the case for the mac os
< jeffin143[m]>
walragatver: were you to locally test it ?
< walragatver[m]>
walragatver: I will test in the midnight today
< jeffin143[m]>
walragatver: ok
< walragatver[m]>
Basically it would work
< jeffin143[m]>
walragatver: also go to means here - like search for header files , in the specific paths
< walragatver[m]>
It was working previously as well except the linking error
< jeffin143[m]>
walragatver: there are chances it won't , some kind of segmentation fault π
< jeffin143[m]>
Let's hope for the best
robertohueso has joined #mlpack
< walragatver[m]>
jeffin143: Is the location issue resolved?
< walragatver[m]>
Or you are still facing some issue with it?
< jeffin143[m]>
walragatver : I am still facing it
< jeffin143[m]>
I am trying something with cmake , shrit suggested some way out
< walragatver[m]>
Okay
aoeuiiueoa[m] has joined #mlpack
Cadair has joined #mlpack
benpa[m] has joined #mlpack
GitterIntegratio has joined #mlpack
khimrajGitter[m] has joined #mlpack
SlackIntegration has joined #mlpack
sy0814kGitter[m] has joined #mlpack
AtharvaKhandaitG has joined #mlpack
Param-29Gitter[m has joined #mlpack
RoHitRushilGitte has joined #mlpack
SaraanshTandonGi has joined #mlpack
DivyanshKumar[m] has joined #mlpack
SriramSKGitter[m has joined #mlpack
VSaicharanGitter has joined #mlpack
ShikharJaiswalGi has joined #mlpack
chopper_inbound[ has joined #mlpack
siddhant2001Gitt has joined #mlpack
AmeetKumarRanaGi has joined #mlpack
kartikdutt18Gitt has joined #mlpack
KhizirSiddiquiGi has joined #mlpack
yashwants19[m] has joined #mlpack
mlozhnikov[m] has joined #mlpack
anjishnu[m] has joined #mlpack
geek-2002Gitter[ has joined #mlpack
jjb[m] has joined #mlpack
ZanHuang[m] has joined #mlpack
TaapasAgrawalGit has joined #mlpack
vigsterkr[m] has joined #mlpack
JatoJoseph[m] has joined #mlpack
AryamanBhagatGit has joined #mlpack
jeffinsamGitter[ has joined #mlpack
rcurtin[m] has joined #mlpack
ShivamShaurya[m] has joined #mlpack
shrit[m] has joined #mlpack
sailor[m] has joined #mlpack
kritika12298Gitt has joined #mlpack
jonpsy[m] has joined #mlpack
RishabhGoel[m] has joined #mlpack
RudraPatil[m] has joined #mlpack
M_slack_mlpack_U has joined #mlpack
UmarGitter[m] has joined #mlpack
DirkEddelbuettel has joined #mlpack
AbishaiEbenezerG has joined #mlpack
mrmajor[m] has joined #mlpack
asadoll[m] has joined #mlpack
OmarWagih1Gitter has joined #mlpack
Saksham[m] has joined #mlpack
MostafaNabiehGit has joined #mlpack
LolitaNazarov[m] has joined #mlpack
GauravTirodkar[m has joined #mlpack
TrinhNgo[m] has joined #mlpack
EL-SHREIFGitter[ has joined #mlpack
ArunavShandeelya has joined #mlpack
eddelbuettel[m] has joined #mlpack
RyanBirminghamGi has joined #mlpack
maddogx[m] has joined #mlpack
saksham189Gitter has joined #mlpack
NishantKumarGitt has joined #mlpack
YashwantSinghPar has joined #mlpack
Manav-KumarGitte has joined #mlpack
PranavReddyP16Gi has joined #mlpack
AniThoGitter[m] has joined #mlpack
Valliappan_CAGit has joined #mlpack
outmanipulateGit has joined #mlpack
zoq[m] has joined #mlpack
GauravSinghGitte has joined #mlpack
nishantkr18[m] has joined #mlpack
kunal12298Gitter has joined #mlpack
AbhinavvermaGitt has joined #mlpack
JoelJosephGitter has joined #mlpack
RohitKartikGitte has joined #mlpack
AbhinavGudipati[ has joined #mlpack
KimSangYeon-DGU[ has joined #mlpack
bisakh[m] has joined #mlpack
robotcatorGitter has joined #mlpack
birm[m] has joined #mlpack
kartikdutt18[m] has joined #mlpack
SakshamRastogiGi has joined #mlpack
jacob-earleGitte has joined #mlpack
abernauer[m] has joined #mlpack
AbdullahKhilji[m has joined #mlpack
ChaithanyaNaik[m has joined #mlpack
MrityunjayTripat has joined #mlpack
aadarsh-asthanaG has joined #mlpack
AnjishnuGitter[m has joined #mlpack
PrinceGuptaGitte has joined #mlpack
HimanshuPathakGi has joined #mlpack
TanayMehtaGitter has joined #mlpack
himanshu_pathak[ has joined #mlpack
AbhishekNimje[m] has joined #mlpack
PulkitgeraGitter has joined #mlpack
abhinavgudipatiG has joined #mlpack
Cadair is now known as Guest69039
< walragatver[m]>
jeffin143: Everything is working perfectly in my system. The test is also passing and examples in readme are also working
sreenik[m] has joined #mlpack
< jeffin143[m]>
Ok but nothing is working in my system
< jeffin143[m]>
Tagging @walragatver:matrix.org
< walragatver[m]>
Okay
< walragatver[m]>
> shrit : now shrit like the test worked
< walragatver[m]>
But running the example gives segmentation fault
< walragatver[m]>
So this the problem right now right?
< walragatver[m]>
Γan you just show some screenshots etc.
< walragatver[m]>
Jeffin143:
< walragatver[m]>
Of the error
< walragatver[m]>
jeffin143: tagging you
< jeffin143[m]>
Yes it says header files are compiled with a older version
< walragatver[m]>
Okay what's the output of protoc --version
< walragatver[m]>
jeffin143: have you hit make install after building?
< jeffin143>
yes
< jeffin143>
sry
< jeffin143>
sry
< jeffin143>
sry
< walragatver[m]>
jeffin143: What happened?
< jeffin143>
it worked
< jeffin143>
huh
< jeffin143>
I am really stupid
< walragatver[m]>
jeffin143: Great.
< walragatver[m]>
> I am really stupid
< walragatver[m]>
It happens with everyone once someone gets frustrated
< walragatver[m]>
jeffin143: let me know if you need any other help
< jeffin143>
but that was a hack -> What I did is inside build dir created a symlink to the include -> https://ibb.co/16XnJb3
< jeffin143>
but at least that worked
< walragatver[m]>
Okay
< jeffin143>
if you see the image google is just a symlink to the original since cmake is not able to find the headers , but now what I will do is take it using option in cmake -DPROTOBUF_PATH = /usr/local/include
< jeffin143>
and that should work I gues
< jeffin143>
walragatver[m] , let me know if that sounds ok to you ?
< walragatver[m]>
I think birm: might also help you in this
< walragatver[m]>
birm: In your free time look at #5 if possible
< jeffin143>
I am really happy , that it worked, it really bugged my sleep, At least today I can sleep
< walragatver[m]>
> if you see the image google is just a symlink to the original since cmake is not able to find the headers , but now what I will do is take it using option in cmake -DPROTOBUF_PATH = /usr/local/include
< walragatver[m]>
Basically it might be great for novice
< walragatver[m]>
jeffin143: most people don't know about install path etc.
< jeffin143>
haha, no issue, I will have a talk with brim over this -> tommrrow we have meetup , our agenda will be this
< jeffin143>
not tommrrow , tmrw is sat , sunday
< jeffin143>
It has been many days inside room , forgot about days ππ
< walragatver[m]>
Tomorrow is Saturday
< walragatver[m]>
jeffin143: what's the install path of protobuf when installed from source?
< HimanshuPathakGi>
Hey @rcurtin @saksham189 I am trying to implement http://cs229.stanford.edu/materials/smo.pdf to train my kernel SVM it will support non-linear kernels like (Gaussian, polynomial, etc) and linear also. Sorry, it cost me time to understand the implementation. Do you have any suggestions over this. Also, @rcutin you were right about sklearn they are using `libsvm` for implementation we can test it with anyone of them.
< birm[m]>
walragatver: I'll look at 5 in a bit!
< rcurtin>
I would say my main suggestion is to make sure to templatize the KernelType (and the MatType too perhaps) :)
< rcurtin>
for testing, we don't need to compare directly against scikit; I'd suggest instead setting up some number of non-linearly-separable problems that we would expect kernel SVM to be able to obtain perfect classification on
< jeffin143>
walragatver[m] : when installed from source -> `/usr/local/include/google` --> when using brew , in will be /usr/local/Cellar/ and there would be `/usr/local/include/google` which would be symlink to /user/local/cellar/protobuf/3.11.3/include
< rcurtin>
(for instance, two concentric circles, one of each class)
< walragatver[m]>
> walragatver : when installed from source -> `/usr/local/include/google` --> when using brew , in will be /usr/local/Cellar/ and there would be `/usr/local/include/google` which would be symlink to /user/local/cellar/protobuf/3.11.3/include
< walragatver[m]>
If there is symlink when installing from brew then why the build is failing?
< walragatver[m]>
jeffin143: tagging you
< walragatver[m]>
Oh yeah i got that
< walragatver[m]>
jeffin143: it's looking only in build/include
< jeffin143>
> jeffin143: it's looking only in build/include
< jeffin143>
walragatver[m] : yes
< walragatver[m]>
jeffin143: Have you seen the models repo.