Community RSS Feed
http://community.wolfram.com
RSS Feed for Wolfram Community showing any discussions in tag Data Science sorted by activeImprove neural network performance with Mathematica 11.3 ?
http://community.wolfram.com/groups/-/m/t/1298554
I look at the blog post with the 11.3 word cloud with 'Blockchain' as the BIG center and ask how important is that? As I run the exact same data science GPU code on identical hardware software configuration except for the change from Mathematica 11.2 to Mathematica 11.3 and see my neural network performance go from 295 seconds on 11.2 to 2038 seconds on 11.3. Again NO change other than Mathematica version. And then I see that Mathematica 11.3 still does not support current XCode LLVM/GCC compiler or NVIDIA for CUDA tools (watch it move back to old paclet for Mathematica 10.5 after you upgrade your XCode command line tools to current version, am I expected to pay money to figure this out?) .
This is my experience as I explore the value of Mathematica since release 10 to today for data science and at the same time see the massive improvements and quality of Python, Jupyter, NVIDIA, iOS CoreML, Vulkan, Tensorflow and core GPU computing on MacOS, iOS and Linux.
Really questioning the value proposition of Wolfram for data science going forward. Sad.David Proffer2018-03-10T04:14:59ZAny hope to support external R distribution on Mac?
http://community.wolfram.com/groups/-/m/t/1302008
Even with the newly released version 11.3, *Mathematica* on a Mac (or, apparently, under Linux) still does not allow using an external R distribution.
Is there some strong technical reason why support for an external R distribution is currently provided only for Windows?Murray Eisenberg2018-03-13T21:14:11ZMongoDB and Mathematica
http://community.wolfram.com/groups/-/m/t/88662
Hi everyone,
I'm looking for a database link between Mathematica and [b][url=http://en.wikipedia.org/wiki/MongoDB]MongoDB[/url][/b]. Is it possible? I see nothing about this in the DatabaseLink reference. Any ideas?
SteeveSteeve Brechmann2013-08-03T04:30:38ZUsing Basic JSON REST Services in Mathematica
http://community.wolfram.com/groups/-/m/t/1262929
I recently had a job interview where I was given the following problem and I decided to tackle it with Mathematica vs. Groovy; it seemed very simple to accomplish using Mathematica: *(Hopefully they take kindly to it)*
- There’s a “fake” REST service available for testing at:
http://jsonplaceholder.typicode.com/
- Write some code in the Groovy programming language that uses the
“posts” API published at http://jsonplaceholder.typicode.com/posts,
which reports back some fake blog posts including a userid, post id,
title, and body.
- Retrieve the records from the API and generate a report that lists only the users who wrote posts where the post title starts with the
letter “s” along with the number of such posts for each of those
users.
- Use the user's name in the report, not the numerical user ID.
- Return to us the report that's generated, along with the (working)
code that generated it.
First, let's import our posts from the website as RawJSON format and generate a Dataset from it which is much more convenient to work with:
posts = Import["http://jsonplaceholder.typicode.com/posts", "RawJSON"];
postsDataSet = Dataset[posts]
![enter image description here][1]
Next, let us filter out all of the posts whose bodies of text start with the string character "s":
filterPostsDataSet = postsDataSet[Select[StringTake[#title, 1] == "s" &]]
![enter image description here][2]
We are left with 9 entries and all we need to do is keep the userId values associated with these:
userIDs = filterPostsDataSet[All, "userId"]
![enter image description here][3]
Now we need to retrieve the user's information attached to these Id values; although not specifically stated I assumed these could be found at http://jsonplaceholder.typicode.com/users. Thus, we simply import these values and, like before, wrap them in a Dataset.
users = Import["http://jsonplaceholder.typicode.com/users", "RawJSON"];
usersDataSet = Dataset[users]
![enter image description here][4]
Although I feel there is a more elegant way - I am going to make a list of just the users names from this Dataset to work with using the following:
userResults =
Table[usersDataSet[Select[#id == userIDs[[i]] &]][[1]]["name"], {i, 1, Length[userIDs]}]
Additionally, I want to keep a list of the *unique* user names since some might be duplicated in the previous list:
uniqueUsers = DeleteDuplicates[userResults]
Finally, I will create a final list which is essentially my required report, which will be a list of pairs. Each pair will contain the unique user name as well as the count of how many times that unique user name appeared in the original list. I put this in TableForm just for aesthetic value. This can then be exported to the desired format later on if necessary.
uniqueUserPosts = Table[{uniqueUsers[[i]], Count[userResults, uniqueUsers[[i]]]}, {i, 1, Length[uniqueUsers]}] // TableForm
![enter image description here][5]
In conclusion, I think that in the future using Mathematica in working with REST API's could and should be allowed if not encouraged as a proper scripting languages in many commercial and industrial settings. So - what do you guys think?? Is this better or worse than what could be done in Groovy or other scripting languages? Also, I feel that I could condense and optimize my code in areas and would love to hear feedback on that.
[1]: http://community.wolfram.com//c/portal/getImageAttachment?filename=Result1.png&userId=856782
[2]: http://community.wolfram.com//c/portal/getImageAttachment?filename=7292Result2.png&userId=856782
[3]: http://community.wolfram.com//c/portal/getImageAttachment?filename=1220Result3.png&userId=856782
[4]: http://community.wolfram.com//c/portal/getImageAttachment?filename=Result4.png&userId=856782
[5]: http://community.wolfram.com//c/portal/getImageAttachment?filename=5573Result5.png&userId=856782William Duhe2018-01-10T05:24:46Z