René's URL Explorer Experiment


Title: Update Python SDK so FeatureSet can import Schema from Tensorflow metadata by davidheryanto · Pull Request #450 · feast-dev/feast · GitHub

Open Graph Title: Update Python SDK so FeatureSet can import Schema from Tensorflow metadata by davidheryanto · Pull Request #450 · feast-dev/feast

X Title: Update Python SDK so FeatureSet can import Schema from Tensorflow metadata by davidheryanto · Pull Request #450 · feast-dev/feast

Description: What this PR does / why we need it: This PR extends FeatureSet, Entity and Feature class in Python SDK so they can contain constraints defined in the Schema from Tensorflow metadata: https://github.com/tensorflow/metadata/blob/ddf582f66eeeddb862de6d53c3e03d6eed1c04a6/tensorflow_metadata/proto/v0/schema.proto These contraints presence_constraints, shape_type and domain_info can be used for validation of feature values and presence in Feast. Typical usage when one is already using Tensorflow data validation is as follows: import tensorflow_data_validation as tfdv # Use tensorflow_data_validation to generate initial schema for validation train_stats = tfdv.generate_statistics_from_csv(data_location="/data/train.csv") schema = tfdv.infer_schema(statistics=train_stats) # Create a new FeatureSet or retrieve an existing FeatureSet in Feast feature_set = FeatureSet( name="myfeatureset", entities=[Entity(name="id", dtype=ValueType.INT64),], features=[ Feature(name="feature1", dtype=ValueType.STRING), Feature(name="feature2", dtype=ValueType.INT), ... ], ) # Update the entities and features with constraints defined in the schema feature_set.update_schema(schema) Which issue(s) this PR fixes: Related to #172 Does this PR introduce a user-facing change?: NONE

Open Graph Description: What this PR does / why we need it: This PR extends FeatureSet, Entity and Feature class in Python SDK so they can contain constraints defined in the Schema from Tensorflow metadata: https://github...

X Description: What this PR does / why we need it: This PR extends FeatureSet, Entity and Feature class in Python SDK so they can contain constraints defined in the Schema from Tensorflow metadata: https://github...

Opengraph URL: https://github.com/feast-dev/feast/pull/450

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:a0e4c46d-a0c4-cc0e-4dd4-f0d6ef2d4c72
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDA56:20614C:3583246:47A8FE1:697AF815
html-safe-noncefe4aa30141b0841b5d5894d07e756873f33a456b0e9b9460c03c41683d1d45a8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTU2OjIwNjE0QzozNTgzMjQ2OjQ3QThGRTE6Njk3QUY4MTUiLCJ2aXNpdG9yX2lkIjoiNjM4MTQ4NjY4MTAyNjY1NjI3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac9a3678febc78fae37001dd0023c0df8154c739a1c71203b168ea53524b2bd4f2
hovercard-subject-tagpull_request:368894214
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/feast-dev/feast/pull/450/files
twitter:imagehttps://avatars.githubusercontent.com/u/5300554?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/5300554?s=400&v=4
og:image:altWhat this PR does / why we need it: This PR extends FeatureSet, Entity and Feature class in Python SDK so they can contain constraints defined in the Schema from Tensorflow metadata: https://github...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7ce8ed0a54c4730aeca4e6abacfc6490365fc42e25480b86883054df3f9181c8
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/feast-dev/feast git https://github.com/feast-dev/feast.git
octolytics-dimension-user_id57027613
octolytics-dimension-user_loginfeast-dev
octolytics-dimension-repository_id161133770
octolytics-dimension-repository_nwofeast-dev/feast
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id161133770
octolytics-dimension-repository_network_root_nwofeast-dev/feast
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
released7bfc78137af9a4828305e52ab993fce981d7085
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/feast-dev/feast/pull/450/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffeast-dev%2Ffeast%2Fpull%2F450%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffeast-dev%2Ffeast%2Fpull%2F450%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=feast-dev%2Ffeast
Reloadhttps://github.com/feast-dev/feast/pull/450/files
Reloadhttps://github.com/feast-dev/feast/pull/450/files
Reloadhttps://github.com/feast-dev/feast/pull/450/files
feast-dev https://github.com/feast-dev
feasthttps://github.com/feast-dev/feast
Notifications https://github.com/login?return_to=%2Ffeast-dev%2Ffeast
Fork 1.2k https://github.com/login?return_to=%2Ffeast-dev%2Ffeast
Star 6.7k https://github.com/login?return_to=%2Ffeast-dev%2Ffeast
Code https://github.com/feast-dev/feast
Issues 183 https://github.com/feast-dev/feast/issues
Pull requests 68 https://github.com/feast-dev/feast/pulls
Discussions https://github.com/feast-dev/feast/discussions
Actions https://github.com/feast-dev/feast/actions
Security 0 https://github.com/feast-dev/feast/security
Insights https://github.com/feast-dev/feast/pulse
Code https://github.com/feast-dev/feast
Issues https://github.com/feast-dev/feast/issues
Pull requests https://github.com/feast-dev/feast/pulls
Discussions https://github.com/feast-dev/feast/discussions
Actions https://github.com/feast-dev/feast/actions
Security https://github.com/feast-dev/feast/security
Insights https://github.com/feast-dev/feast/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Ffeast-dev%2Ffeast%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Ffeast-dev%2Ffeast%2Fissues%2Fnew%2Fchoose
feast-ci-bothttps://github.com/feast-ci-bot
feast-dev:masterhttps://github.com/feast-dev/feast/tree/master
davidheryanto:update-python-sdk-import-export-tf-metadata-schemahttps://github.com/davidheryanto/feast/tree/update-python-sdk-import-export-tf-metadata-schema
Conversation 21 https://github.com/feast-dev/feast/pull/450
Commits 12 https://github.com/feast-dev/feast/pull/450/commits
Checks 0 https://github.com/feast-dev/feast/pull/450/checks
Files changed https://github.com/feast-dev/feast/pull/450/files
Please reload this pagehttps://github.com/feast-dev/feast/pull/450/files
Update Python SDK so FeatureSet can import Schema from Tensorflow metadata https://github.com/feast-dev/feast/pull/450/files#top
Show all changes 12 commits https://github.com/feast-dev/feast/pull/450/files
bfd8682 Add skeleton for update/get schema in FeatureSet davidheryanto Jan 29, 2020 https://github.com/feast-dev/feast/pull/450/commits/bfd8682e74378fbd6283a95d63000d751dd0712b
756533e Add update_schema method to FeatureSet davidheryanto Jan 30, 2020 https://github.com/feast-dev/feast/pull/450/commits/756533eba9bea39844a9ccb66d1541f594a574e3
9abd082 Update error message when domain ref is missing from top level schema davidheryanto Jan 30, 2020 https://github.com/feast-dev/feast/pull/450/commits/9abd0820a1eb43a13cdd6db79fe5fde09ed0b84b
b2b7783 Add more assertion in test_update_schema before updating schema davidheryanto Jan 30, 2020 https://github.com/feast-dev/feast/pull/450/commits/b2b7783177589870671aeeb7f90e9ade75717789
4574f72 Fix conflicting versions in package requirements davidheryanto Jan 30, 2020 https://github.com/feast-dev/feast/pull/450/commits/4574f72493cf56e2de4810715a8d4999ef828af9
5029550 Add export_schema method to export schema from FeatureSet davidheryanto Jan 31, 2020 https://github.com/feast-dev/feast/pull/450/commits/5029550afe85ef35ca98a58de19b04222abbd29d
dc39ca7 Add exporting of Tensorflow metadata schema from FeatureSet. davidheryanto Feb 2, 2020 https://github.com/feast-dev/feast/pull/450/commits/dc39ca77422f4221d0d738398fa68472663544df
57dfa02 Remove changes to mypy generated codes davidheryanto Mar 1, 2020 https://github.com/feast-dev/feast/pull/450/commits/57dfa0206661088d4dabeb9fddf0d45eb56f18f9
bfd282d Revert changes to packages version in requirements-ci and setup.py davidheryanto Mar 4, 2020 https://github.com/feast-dev/feast/pull/450/commits/bfd282d538874853216f10b56d4debda97c1da13
dcd6e19 Remove 'schema' param in 'from_proto' method in Entity and Feature. davidheryanto Mar 13, 2020 https://github.com/feast-dev/feast/pull/450/commits/dcd6e19feff687578cb8f7b3592f2a27c294c253
6af74c6 Fix rebase errors, apply black Apr 10, 2020 https://github.com/feast-dev/feast/pull/450/commits/6af74c6876294dc4870f25b05bc416ee8928c789
d12aead Remove unnecessary imports Apr 10, 2020 https://github.com/feast-dev/feast/pull/450/commits/d12aeadd8926fd9f80457486c1b8f36ab9169679
Clear filters https://github.com/feast-dev/feast/pull/450/files
Please reload this pagehttps://github.com/feast-dev/feast/pull/450/files
Please reload this pagehttps://github.com/feast-dev/feast/pull/450/files
entity.py https://github.com/feast-dev/feast/pull/450/files#diff-c0f89d7c348e7d395df4f432d417bea219403127ac9e94e0c126bcf707bf39bb
feature.py https://github.com/feast-dev/feast/pull/450/files#diff-08365ff20f581911a17c52ed2e1f691728dc2a7ab11f3af4a43f8117d00285d9
feature_set.py https://github.com/feast-dev/feast/pull/450/files#diff-c32f70797a62b07c798f70588ea978ae3b173562af7a42f796df1fe761060c9b
field.py https://github.com/feast-dev/feast/pull/450/files#diff-d07bc9ff25c891d1cf5359ba1bb16ce4f06a1c742193f9f37ca80f34f378c121
yaml.py https://github.com/feast-dev/feast/pull/450/files#diff-fd26da27e860f0eaff906dadd37db441556600acf9ad533e2485d400d1973b66
value_type.py https://github.com/feast-dev/feast/pull/450/files#diff-f3d0ec2fb5bc0c650efbcfca1ea337172a7e6cca900f7fefb47d150287387780
path_pb2.py https://github.com/feast-dev/feast/pull/450/files#diff-8065504fe774ca3f932ce83f8e19049198ae69e997f6b262ae5b4aba3415d6ae
path_pb2.pyi https://github.com/feast-dev/feast/pull/450/files#diff-abaf89e7ca9d7eab3af9833da4f4295cdd249f36fa37048aecc3aa3cea134557
schema_pb2.py https://github.com/feast-dev/feast/pull/450/files#diff-9102f3c01016ecf6d4041a1906755d2685c912c73c0bc9b53b8c6140a6faba18
schema_pb2.pyi https://github.com/feast-dev/feast/pull/450/files#diff-75142273842c79685993c7f798e31b9b76b0e52a982f09a5eddededa676e514b
bikeshare_feature_set.yaml https://github.com/feast-dev/feast/pull/450/files#diff-ecf304a2383ca6a97badd808ead8cef3b182773f09f6656a0979998b6d351da8
bikeshare_schema.json https://github.com/feast-dev/feast/pull/450/files#diff-6a9d679b37c0842c0498a1927ac7dc0d28fb716e18b7da6157a2df24e89770a1
test_feature_set.py https://github.com/feast-dev/feast/pull/450/files#diff-c6d82f9bebad23ffc7412206b4e42d97401092aad390ba298558d774968e2463
https://github.com/feast-dev/feast/blob/master/CODEOWNERS#L10
sdk/python/feast/entity.pyhttps://github.com/feast-dev/feast/pull/450/files#diff-c0f89d7c348e7d395df4f432d417bea219403127ac9e94e0c126bcf707bf39bb
View file https://github.com/davidheryanto/feast/blob/d12aeadd8926fd9f80457486c1b8f36ab9169679/sdk/python/feast/entity.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/feast-dev/feast/pull/450/{{ revealButtonHref }}
https://github.com/feast-dev/feast/pull/450/files#diff-c0f89d7c348e7d395df4f432d417bea219403127ac9e94e0c126bcf707bf39bb
https://github.com/feast-dev/feast/pull/450/files#diff-c0f89d7c348e7d395df4f432d417bea219403127ac9e94e0c126bcf707bf39bb
https://github.com/feast-dev/feast/blob/master/CODEOWNERS#L10
sdk/python/feast/feature.pyhttps://github.com/feast-dev/feast/pull/450/files#diff-08365ff20f581911a17c52ed2e1f691728dc2a7ab11f3af4a43f8117d00285d9
View file https://github.com/davidheryanto/feast/blob/d12aeadd8926fd9f80457486c1b8f36ab9169679/sdk/python/feast/feature.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/feast-dev/feast/pull/450/{{ revealButtonHref }}
https://github.com/feast-dev/feast/pull/450/files#diff-08365ff20f581911a17c52ed2e1f691728dc2a7ab11f3af4a43f8117d00285d9
https://github.com/feast-dev/feast/blob/master/CODEOWNERS#L10
sdk/python/feast/feature_set.pyhttps://github.com/feast-dev/feast/pull/450/files#diff-c32f70797a62b07c798f70588ea978ae3b173562af7a42f796df1fe761060c9b
View file https://github.com/davidheryanto/feast/blob/d12aeadd8926fd9f80457486c1b8f36ab9169679/sdk/python/feast/feature_set.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/feast-dev/feast/pull/450/{{ revealButtonHref }}
https://github.com/feast-dev/feast/pull/450/files#diff-c32f70797a62b07c798f70588ea978ae3b173562af7a42f796df1fe761060c9b
https://github.com/feast-dev/feast/pull/450/files#diff-c32f70797a62b07c798f70588ea978ae3b173562af7a42f796df1fe761060c9b
https://github.com/feast-dev/feast/pull/450/files#diff-c32f70797a62b07c798f70588ea978ae3b173562af7a42f796df1fe761060c9b
https://github.com/feast-dev/feast/pull/450/files#diff-c32f70797a62b07c798f70588ea978ae3b173562af7a42f796df1fe761060c9b
https://github.com/feast-dev/feast/pull/450/files#diff-c32f70797a62b07c798f70588ea978ae3b173562af7a42f796df1fe761060c9b
https://github.com/feast-dev/feast/pull/450/files#diff-c32f70797a62b07c798f70588ea978ae3b173562af7a42f796df1fe761060c9b
Please reload this pagehttps://github.com/feast-dev/feast/pull/450/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.