Giter Site home page Giter Site logo

Comments (6)

prasanthpul avatar prasanthpul commented on June 30, 2024 1

@rastala is this documented somewhere? consider also updating the notebooks which show always using json.dumps, even on data that wouldn't need it.

from machinelearningnotebooks.

prasanthpul avatar prasanthpul commented on June 30, 2024

I had the same issue and had to remove the json.dumps in the return from my run().

from machinelearningnotebooks.

rastala avatar rastala commented on June 30, 2024

The service calls Request library's Response.json() method on the return value. So if the return value can be handled by this method already, then json.dumps() wouldn't be necessary.

from machinelearningnotebooks.

ezwiefel avatar ezwiefel commented on June 30, 2024

I agree with with @prasanthpul - this should be documented somewhere and the notebooks should be updated...

@hning86 - Could we update these notebooks to take out json.dumps() from the score.py examples. This causes malformed JSON to be returned from the webservice.

Additionally, we should have documentation that the return value from the run method in scoring scripts should be a JSON serializable object and not a JSON string

from machinelearningnotebooks.

hning86 avatar hning86 commented on June 30, 2024

Yeah I will fix this. Thx for spotting it!

from machinelearningnotebooks.

hning86 avatar hning86 commented on June 30, 2024

this is fixed. i am closing the issue.

from machinelearningnotebooks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.