Has anyone any experience on implementing the R Package XGBoost within the Azure ML Studio environment? - cortana-intelligence

I was hoping that someone would have tried to or had success in implementing it and would have knowledge of any pitfalls in using it.

You need to zip & load the package windows binaries in dataset & import it to the R environment.
You can follow the instructions over here. I couldn't import it for the latest version, so I simply downloaded the xgboost version from this experiment & loaded it to my saved datasets
This is for any generic packages which are not preloaded in the environment
The following is a list of experiments to publish R models as a web service
Hope this helps!
Edit: You can also simply change the R version to Microsoft Open R (current version 3.2.2) and you can import xgboost as any common library

Here you can find an example. It shows for example that you would need to import external libraries individually for both training and scoring.

Related

FastAI fastbook - what does it do and why do I need to setup a book?

I tried running on my google colab notebook:
!pip install -Uqq fastbook
import fastbook
as it is written in the FastAI book, chapter 2.
but nor the book or anywhere on google there is an explanation on what is this liberty at all.
amazingly, the page for it does not include any explanation on what fastbook does- only about some course for deep learning.
so,
what does it do?
also, when I run:
fastbook.setup_book()
what does that do? in which way does it setup a book, and what kind of book is it?
ty.
fastbook.setup_book()
It is used setup when you are using google colab specifically and working with FastAI library. It helps to connect the colab notebook to google drive using an authentication token.
fastbook relates to the book/course.
The materials in the book use fastai, but also other libraries, e.g. pandas graphviz etc.
fastbook has almost no library code itself, it mostly contains the dependencies one would need to follow the course. Plus, the book itself, of course.
In other words: to run the code from the book/course, you will either need to install fastai pandas graphviz ..., or simply install fastbook.
Watch the author himself talk about this: https://youtu.be/B6BQiIgiEks?t=441
During the course, you will download gigabytes of data: images/datasets/pretrained models. As well as more generally work with storage. You provide it from your GDrive.

Port TensorFlow code to Android

I have written a script for sequence classification using TensorFlow in Python. I would like to port this code to Android. I have seen the example on the TensorFlow github page regarding Android but that is for images.
Is there any way to directly port my TensorFlow Python code on Android?
The typical way to do this is to build (and train) your model using Python, save the GraphDef proto to a file using tf.train.write_graph(), and then write an app using the JNI to call the C++ TensorFlow API (see a complete example here).
When you build your graph in Python, you should take note of the names of the tensors that will represent (i) the input data to be classified, and (ii) the predicted output values. Then you will be able to run a step by feeding a value for (i), and fetching the value for (ii).
One final concern is how to represent the model parameters in your exported graph. There are several ways to do this, including shipping a TensorFlow checkpoint (written by a tf.train.Saver) as part of your app, and running the restore ops to reload it. One method, which has been used in the released InceptionV3 model is to rewrite the graph so that the model parameters are replaced with "Const" nodes, and the model graph becomes self contained.
There is QPython or Kivy.
QPython - Android Apps on GooglePlay. It's a script engine that runs Python on android devices. It lets your android device run Python scripts and projects. It contains the Python interpreter and some other stuff like pip, but there's no compiler available, so only pure-python packages will work.
Python for Android - lets you compile a Python application into an Android APK together with additional packages both pure-python and those that need compiling.

Package dependencies in Android apk files

I am performing Android app reverse engineering (decompilation and further analysis). I wish to analyse the package dependencies between different packages inside the same apk file. Is there any tool which does this? Else, how can I deduce package dependency in apk files?
I wish to analyse the package dependencies between different packages inside the same apk file. Please let me know if there is any tool which does this
A tool called Dexter is available to find out all the packages present in an apk. Also, if there is a program dependency among any 2 packages, Dexter show it with an edge. It could be noted that the edges do not have any weight to indicate the strength of the dependency.
The only dependencies that I have run into with apk files are with the framework from the device. If you are dealing with a standard app available from the Play, then it generally contains everything that it needs inside its own package.
Some of the custom builds like Amazon Kindle Fire, Barns & Noble Nook, etc have built custom launchers and other services which then offer other functions through their frameworks.
The framework-res.apk is typically stored in the /system/framework location. You can extract that from your device and place it in your apktool folder of your %userprofile%/~. Apktool (I am assuming that is one of the tools you are using) will then reference it when it does the work.

cocs2dx faild to generate binary- blackberry Momentics ide

I am having source code which is having classes and resources folder. I tried to create one blackberry project and import those files inside same project. I have linked cocos2dx with proper steps. What I am not clear with is how you will run a source code which has only classes and resources in blackberry momwntics IDE. If anyone has any kind of idea or hint or clue or direction then please respond. Thanks ...
I also faced the same issues when trying to get cocos2d-x for blackberry running in the Momentics IDE. The code sample provided is not very well organised and clearly does not follow the file hierarchy or structure of conventional Momentics IDE bb10 projects. I personally find this to be quite confusing - especially to programmers with little experience programming in C++, linkers etc.
That being said, I there are a series of steps you can follow to get cocos2d-x for blackberry running .
Download the Cocos2d-x project from http://www.cocos2d-x.org/ . This folder contains the cocos2d main libraries , sample code, and platform specific libraries for different platforms (web, desktop, iphone, android, blackberry).
The next task is to import the cocos2d libraries required for blackberry
development into the Momentics IDE and successfully build the first project.
A quick search of the Cocos2dx source directory reveals a list of proj.blackberry files which indicate blackberry related projects that could be imported. I found that importing the following proj.blackberry files into my workspace were sufficient to help me build the sample project included .
/cocos2d-x-2.1.4/cocos2dx/blackberry/proj.blackberry
/cocos2d-x-2.1.4/CocosDenshion/blackberry/proj.blackberry
/cocos2d-x-2.1.4/extensions/blackberry/proj.blackberry
Note that the main reasons for importing the projects above it to make them
available as referenced projects to your libraries. This pretty much should
handle errors of missing files or paths etc.
/cocos2d-x-2.1.4/template/blackberry/proj.blackberry
(This is the sample project which we will run and compile – BBTemplateProject)
To import each of the above
File > Import > Existing Project into Workspace > Cocos2dx source directory above
At this point you should have the BBTemplateProject imported. Now try to build it..
I have written a more detailed post about this here
http://www.denvycom.com/blog/setting-up-cocos2d-for-blackberry-10-development/ . This post also includes a quick fix to handle a decode.h error you might encounter while trying to build your project.
P.S >
I found that the bar-descriptor.xml file lets the compiler know where the relevant included files/classes reside (including the strange Resources folder) . This is why the unconventional heirachy structure works. There are still a few issues Im having working with cocos2d-x for blackberry (such as getting the QtSql libraries integrated and working in a cocs2d-x for Blackberry project) and I'll post solutions as soon as I find any.

ActiveX dependencies in Access

I'm using the Crystal Reports Viewer 11 ActiveX control in an Access form (version 2007, 2003 format). Everything works well on my development machine, where I have CRXI installed. I copied the referenced DLL to the client's machine, but when I try to register it, it says "Can't find module" (I double- and triple-checked my spelling) and when I try to open the form it tells me "ActiveX component can't create object" when the code tries to create a new instance of the report object. I suspect there are more dependency files required by the DLL, but I'm a little at a loss as to what ones and how I go about finding out. Although I'm using the CR control, I assume this would apply to any ActiveX control throwing this error. Thanks.
There should be a runtime distribution document in your Crystal Help files - from past experience (Crystal 8.5) there are multiple files that you have to distribute and register.
I'm answering my own question in case someone finds this via a search in the future. I don't have the Access Package & Deploy wizard David mentioned above (okay, I probably have it but couldn't find it readily) but I image it would probably do what I needed, so I recommend anyone try that first. Instead, I was able to create a setup to install tghe needed files using the Visual Studio Installer and the Crystal merge modules; note that while it wasn't difficult, nor was it pleasant.
I downloaded and installed Visual Studio Installer 1.1 from MSDN. This creates a new project type in Visual Studio 6.0 (in particular, I used InterDev 6.0) that creates a Windows Installer (*.msi) setup file. Because one of the Crystal merge modules requires the Crystal license key and VSI doesn't support merge module parameters, I also had to use Orca, a merge module editor, available from the Microsoft Windows SDK (also available on the Microsoft download site). I recommend reading through the SDK and Orca pages on MSDN for more info. Using Orca, I was able to put my key code and recompile the merge module, so I don't have to deploy my key to my users, and my users don't have to enter one.
Again, the Package & Deployment Wizard is probably a better option, but when faced with using merge modules, as with Crystal, this method will get the job done.