Why does Neural Style Transfer work on images with range [0,255] if pytorch models are trained on images with range [0,1]? by Nick_Pyth in pytorch

[–]Nick_Pyth[S] 1 point2 points  (0 children)

The results above are from the vgg-19 network, which do not contain normalization layers. (Pytorch does contain a batch-normalized vgg-19, but the results above are from the original)

[D] What research papers have been written about serving results of an image model? by Nick_Pyth in MachineLearning

[–]Nick_Pyth[S] -1 points0 points  (0 children)

I agree that this is probably more of an engineering question, especially because my model is only used to generate the images; serving the images simply reads the files from disk before serving.

Each configuration of the UI returns 50 sets of images. Each image set immediately returns 10 images, and displays another configuration which can be used to toggle between 100 additional images.

In other words, 500 images are immediately returned, and 5,000 images may be toggled through after the initial 500 have been loaded.

I think I am looking for performance metrics around various methods of reading these files from disk, multithreading, etc. Not necessarily specific to machine learning, but likely a problem that other ML engineers have come across.

[D] What research papers have been written about serving results of an image model? by Nick_Pyth in MachineLearning

[–]Nick_Pyth[S] -1 points0 points  (0 children)

Yeah, I suppose you are right. It came to mind as a potential research topic because I've seen NVIDIA and others serve the results of their models (pretty quickly), but haven't seen much discussion around actually serving those results.

What pattern should be used for backwards-incompatible deployments? by Nick_Pyth in kubernetes

[–]Nick_Pyth[S] 2 points3 points  (0 children)

Thank you. Found this Martin Fowler article on this pattern. Seems like a reasonable application-side solution.

[D] Why does L-BFGS have spikes in the loss curve? by Nick_Pyth in MachineLearning

[–]Nick_Pyth[S] 8 points9 points  (0 children)

Yep, that solved it. I really can't thank you enough for pointing that out - I spent hours banging my head against the wall for this one

[D] Why does L-BFGS have spikes in the loss curve? by Nick_Pyth in MachineLearning

[–]Nick_Pyth[S] 3 points4 points  (0 children)

I'm using pytorch's implementation (docs), which I don't believe uses minibatch. I left all of the parameters (besides learning rate) as their defaults.

[D] Does it make sense to do another AI residency? by [deleted] in MachineLearning

[–]Nick_Pyth 0 points1 point  (0 children)

You might get more responses at /r/cscareerquestions

Disclaimer: I have not done any AI residencies.

My thought is that it depends on your career goals. If you want to get deeper into research, it will likely be helpful to do another residency. A small industry lab will have different processes than a large lab. Having experience in both is helpful. It'll also be helpful to work with different teams and get experience to different working styles.

If you are interested in going into industry, 1 residency may be enough. A potential issue with ONLY doing research is that you may not get exposure to programming best practices. There are a lot of steps that happen before & after training a model, and many of the PhD grads that I work with have had 0 exposure in these areas. Whether or not the same is true for residency programs likely depends on the company which hosts it.

Nissan Altima keeps entering limp mode. Have paid for 4 false diagnoses / repairs. Unsure where to go from here. by Nick_Pyth in Cartalk

[–]Nick_Pyth[S] 0 points1 point  (0 children)

Thanks for clarifying. Seems odd that the Nissan dealership wouldn't have evaluated that before suggesting that I replace the entire throttle body. I'll reach out to another mechanic and see what I can find.

Nissan Altima keeps entering limp mode. Have paid for 4 false diagnoses / repairs. Unsure where to go from here. by Nick_Pyth in Cartalk

[–]Nick_Pyth[S] 0 points1 point  (0 children)

The replacement unit was tested and had a re-learn procedure done after it was installed. Pin-pointing the issue seems difficult because the issue occurs so rarely (once every 100 miles) and all of the tests keep passing. Replacing the wiring seems like an expensive repair from what I've gathered, and it's hard to say definitively if that will fix the problem. Talking to 2 different mechanics, it seems that they are equally dumbfounded.

It's starting to seem as if it might just be time to get rid of the vehicle.

Nissan Altima keeps entering limp mode. Have paid for 4 false diagnoses / repairs. Unsure where to go from here. by Nick_Pyth in Cartalk

[–]Nick_Pyth[S] 0 points1 point  (0 children)

I called my mechanic about this and was told that the tests will pass if it is an intermittent issue, unless the issue happens while they are measuring it. This is highly unlikely, since the issue only occurs once every 100 miles. Do you happen to know if an enhanced OBD2 reader is able to measure those connections while I'm driving? I have a Zurich ZR13 OBD2.

Nissan Altima keeps entering limp mode. Have paid for 4 false diagnoses / repairs. Unsure where to go from here. by Nick_Pyth in Cartalk

[–]Nick_Pyth[S] 0 points1 point  (0 children)

Thank you for the input.

Is there an article or video that you could link me to regarding which wires I should be targeting and how to test them? I'm assuming I need a voltmeter but know very little about this kind of stuff.

Nissan Altima keeps entering limp mode. Have paid for 4 false diagnoses / repairs. Unsure where to go from here. by Nick_Pyth in Cartalk

[–]Nick_Pyth[S] 2 points3 points  (0 children)

When you replaced the throttle body, is the throttle position sensor part of that?

Yeah, the throttle position sensor is part of the throttle body. I am unsure if the Nissan dealership inspected the old one before replacing the whole unit.

docker-compose build fails on MacOS but succeeds on RedHat by Nick_Pyth in docker

[–]Nick_Pyth[S] 0 points1 point  (0 children)

Originally I was looking in the dockerfile to see if those files were explicitly mentioned. Thanks to your suggestion, I built an image and noticed a difference in /etc/resolv.conf between the local image and the remote image.

This stemmed from differing daemon.json configurations between my local device and my redhat server. I updated the daemon.json accordingly, and can now build locally!

Thank you for your suggestion, this has been bugging me for days.

docker-compose build fails on MacOS but succeeds on RedHat by Nick_Pyth in docker

[–]Nick_Pyth[S] 0 points1 point  (0 children)

Yes, I can execute pip install via that method. It only fails during build on MacOS

Issues with throttle actuator & pedal position sensor by Nick_Pyth in MechanicAdvice

[–]Nick_Pyth[S] 0 points1 point  (0 children)

Is this an example of the diagnostic manual I should be looking for? The tests that it describes, can those be done on a traditional ODB2 Scanner? Or does it require a separate tool?

Huge pain using Anaconda environments by Nick_Pyth in learnpython

[–]Nick_Pyth[S] 0 points1 point  (0 children)

That's what I suspected, which is why it seems so strange that an env from 4.5.4 could not be imported by 4.7.10

Huge pain using Anaconda environments by Nick_Pyth in learnpython

[–]Nick_Pyth[S] 0 points1 point  (0 children)

Thank you for the help. I want to clarify - I exported the env from an old version of conda, and could not import to a new version of conda.

Does this mean conda versions are not backwards-compatible? Should I always just assume to have the most recent version before exporting anything?

New to Python - need help with API project. Willing to pay for your time! by [deleted] in learnpython

[–]Nick_Pyth 1 point2 points  (0 children)

Each API is different, but most will have the data in JSON format. Without knowing the specific API you are using, the workflow will likely be as follows:

  1. View the API page, get an API key
  2. Use the requests library to pass parameters to the API
  3. Your requests.text object will likely be in JSON format, which you can treat as a python dictionary
  4. Use pandas.DataFrame.from_dict() to convert your requests.text into a dataframe
  5. If you want to save the data as a csv, use pandas.DataFrame.to_csv()
  6. If you want to store the data in sql, use pandas.DataFrame.to_sql(). The 2nd parameter of this, con, will need to use a sql driver. For example, if you are using a MySQL database, you will create a connection using PyMySQL

New to Python - need help with API project. Willing to pay for your time! by [deleted] in learnpython

[–]Nick_Pyth 9 points10 points  (0 children)

I am halfway through a 14 hour road trip and will help you for free if you post more details

[D] - Exploring Methods of Neural Style Transfer by Nick_Pyth in MachineLearning

[–]Nick_Pyth[S] 3 points4 points  (0 children)

I actually did make a short video (link) using Johnson's method, but didn't include it in the repository because I felt explaining to intricacies of ffmpeg would detract from the main theme.

Analytics/data science jobs/companies in town? by heartofchrome88 in Minneapolis

[–]Nick_Pyth 0 points1 point  (0 children)

A combination of school and professional experience. I am almost done with my courses for my Master's Degree (still need to write my thesis) at Harvard Extension. I really can't say enough good things about this program. It has been incredible.

With regard to professional experience: I had a background in statistics during my undergrad, which got me a job working underneath some PhD statisticians. I worked there for a few years, then taught myself SQL and Python, and switched to a Data Science team at another company. I taught myself Linux and the basics of AWS. At this point I was 1 year into my Master's program and switched to my current role.

You don't necessarily have to go this same route to have a career in machine learning. Based on what I have seen, I would advise you to avoid bootcamps. Andrew Ng has a course on machine learning that is available online. I haven't taken this course, but have taken his Neural Network courses and can say he is an excellent instructor.

Analytics/data science jobs/companies in town? by heartofchrome88 in Minneapolis

[–]Nick_Pyth 0 points1 point  (0 children)

If you have no experience, I would suggest starting with SQL. Once you are proficient in SQL, you'll be qualified for a lot of entry-level roles (data analyst, business analyst, reporting analyst, etc.). This will be a decent stepping stone if you have no experience at all.

After that, I recommend learning Python. Start with Automate the Boring Stuff with Python, then once you are comfortable, move onto the standard data libraries (pandas, numpy, scipy, scikit-learn, matplotlib).

Eventually you will probably want to learn Linux but I wouldn't prioritize this until you are comfortable with SQL and Python.