Coder Social home page Coder Social logo

Comments (6)

hanneshapke avatar hanneshapke commented on August 18, 2024

@drcat101 Any suggestions?

from building-machine-learning-pipelines.

mshearer0 avatar mshearer0 commented on August 18, 2024

Resolved by adding ipython extra package:

setup_options.extra_packages = [ './tensorflow_data_validation-0.23.0-cp37-cp37m-manylinux2010_x86_64.whl', 'ipython-7.17.0-py3-none-any.whl']

from building-machine-learning-pipelines.

catherinenelson1 avatar catherinenelson1 commented on August 18, 2024

@mshearer0 thank you for adding the solution.

from building-machine-learning-pipelines.

hanneshapke avatar hanneshapke commented on August 18, 2024

@mshearer0 Can you please share your statsgen setup? Are you visualizing the results from the components after the Dataflow Runner completes the execution?

from building-machine-learning-pipelines.

mshearer0 avatar mshearer0 commented on August 18, 2024

@hanneshapke as per Chapter4:

import tensorflow_data_validation as tfdv

from apache_beam.options.pipeline_options import (
PipelineOptions, GoogleCloudOptions, StandardOptions)

options = PipelineOptions()
google_cloud_options = options.view_as(GoogleCloudOptions)
google_cloud_options.project = 'xxx'
google_cloud_options.job_name = 'beamtfdv'
google_cloud_options.staging_location = 'gs://xxx/staging'
google_cloud_options.temp_location = 'gs://xxx/tmp'
google_cloud_options.region='europe-west1'
options.view_as(StandardOptions).runner = 'DataflowRunner'

from apache_beam.options.pipeline_options import SetupOptions

setup_options = options.view_as(SetupOptions)
setup_options.extra_packages = [ 'tensorflow_data_validation-0.23.0-cp37-cp37m-manylinux2010_x86_64.whl', 'ipython-7.18.1-py3-none-any.whl']

data_set_path = 'gs://xxx/consumer-complaints.tfrecords'
output_path = 'gs://xxx/'
tfdv.generate_statistics_from_tfrecord(data_set_path,
output_path=output_path,
pipeline_options=options)

from building-machine-learning-pipelines.

hanneshapke avatar hanneshapke commented on August 18, 2024

Thank you @mshearer0 . I wonder if iPython was previously pre-installed in the dataflow instances. I am glad the setup is working for you now.

from building-machine-learning-pipelines.

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.