Skip to content
This repository has been archived by the owner on Jan 31, 2022. It is now read-only.

Structured logging and other bug fixes. #91

Merged
merged 1 commit into from
Jan 4, 2020

Conversation

jlewi
Copy link
Contributor

@jlewi jlewi commented Jan 4, 2020

Related to #70: Ensemble models


This change is Reviewable

* worker.py should format logs as json entries. This will make it easier
  to query the data in BigQuery and stackdriver to measure performance.

  * Related to kubeflow#79

* To deal with workload identity flakiness (kubeflow#88) test that we can get
  application default credentials on startup and if not exit.

* As a hack to deal with multi-threading issues with Keras models (kubeflow#89)
  have the predict function load a new model on each call

  * It looks like the way pubsub works there is actually a thread pool
    so predict calls won't be handled in the same thread even though
    we throttle it to handle one item at a time.
@jlewi
Copy link
Contributor Author

jlewi commented Jan 4, 2020

/assign @hamelsmu

@hamelsmu
Copy link
Member

hamelsmu commented Jan 4, 2020

/lgtm
/approve

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hamelsmu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 262bfb8 into kubeflow:master Jan 4, 2020
#transform raw text into array of ints
vec_body = self.body_pp.transform([body])
vec_title = self.title_pp.transform([title])

# make predictions with the model
# TODO(jlewi): Is this right? Do we want to get the default graph or
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think getting the default graph works because it makes it easy to refer to that graph lazily and we are only using this one graph at the moment

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants