Title: Keep labels in Field api · Issue #2607 · feast-dev/feast · GitHub
Open Graph Title: Keep labels in Field api · Issue #2607 · feast-dev/feast
X Title: Keep labels in Field api · Issue #2607 · feast-dev/feast
Description: I found that new api 'Field' will take place of 'Feature' in 0.21+ feast. but Field only have 'name' and 'dtype' parameters. The parameter 'labels' is disappeared. In my use case 'labels' is very import. 'labels' stores the default value...
Open Graph Description: I found that new api 'Field' will take place of 'Feature' in 0.21+ feast. but Field only have 'name' and 'dtype' parameters. The parameter 'labels' is disappeared. In my use case 'labels' is very i...
X Description: I found that new api 'Field' will take place of 'Feature' in 0.21+ feast. but Field only have 'name' and 'dtype' parameters. The parameter 'labels' is disapp...
Opengraph URL: https://github.com/feast-dev/feast/issues/2607
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Keep labels in Field api","articleBody":"I found that new api 'Field' will take place of 'Feature' in 0.21+ feast. but `Field` only have 'name' and 'dtype' parameters. The parameter 'labels' is disappeared. \r\nIn my use case 'labels' is very import. 'labels' stores the default value, descriptions,and other things. for example\r\n\r\n```python\r\ncomic_feature_view = FeatureView(\r\n name=\"comic_featureV1\",\r\n entities=[\"item_id\"],\r\n ttl=Duration(seconds=86400 * 1),\r\n features=[\r\n Feature(name=\"channel_id\", dtype=ValueType.INT32, labels={\"default\": \"14\", \"desc\":\"channel\"}),\r\n Feature(name=\"keyword_weight\", dtype=ValueType.FLOAT, labels={\"default\": \"0.0\", \"desc\":\"keyword's weight\"}),\r\n Feature(name=\"comic_vectorv1\", dtype=ValueType.FLOAT, labels={\"default\": \";\".join([\"0.0\" for i in range(32)]), \"desc\":\"deepwalk vector\",\"faiss_index\":\"/data/faiss_index/comic_featureV1__comic_vectorv1.index\"}),\r\n Feature(name=\"comic_vectorv2\", dtype=ValueType.FLOAT, labels={\"default\": \";\".join([\"0.0\" for i in range(32)]), \"desc\":\"word2vec vector\",\"faiss_index\":\"/data/faiss_index/comic_featureV1__comic_vectorv2.index\"}),\r\n Feature(name=\"gender\", dtype=ValueType.INT32, labels={\"default\": \"0\", \"desc\":\" 0-femal 1-male\"}),\r\n Feature(name=\"pub_time\", dtype=ValueType.STRING, labels={\"default\": \"1970-01-01 00:00:00\", \"desc\":\"comic's publish time\"}),\r\n Feature(name=\"update_time\", dtype=ValueType.STRING, labels={\"default\": \"1970-01-01 00:00:00\", \"desc\":\"comic's update time\"}),\r\n Feature(name=\"view_cnt\", dtype=ValueType.INT64, labels={\"default\": \"0\", \"desc\":\"comic's hot score\"}),\r\n Feature(name=\"collect_cnt\", dtype=ValueType.INT64, labels={\"default\": \"0\", \"desc\":\"collect count\"}),\r\n Feature(name=\"source_id\", dtype=ValueType.INT32, labels={\"default\": \"0\", \"desc\":\"comic is from(0-unknown,1-japen,2-usa,3- other)\"}),\r\n```\r\n\r\nSo please keep the parameter 'labels' in Field api\r\n","author":{"url":"https://github.com/hsz1273327","@type":"Person","name":"hsz1273327"},"datePublished":"2022-04-25T04:29:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/2607/feast/issues/2607"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7b247ea4-97a6-8aca-4fbf-706b0a49330c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D97E:16012A:15471:1BB8C:69788A61 |
| html-safe-nonce | 3f1d3c779b06cb21b588e990e7f1a068c283ff9f4e2e1bd8d6cbfb1eb6c15934 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTdFOjE2MDEyQToxNTQ3MToxQkI4Qzo2OTc4OEE2MSIsInZpc2l0b3JfaWQiOiIyOTQ1ODMyNjIxNzIxNTUzNTA1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8ed94663b63e33034769e314bdcb45a57a43be8c0d3e8f15b496abf10d4f979e |
| hovercard-subject-tag | issue:1213956047 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/feast-dev/feast/2607/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ceee31ca832b64f2731691c4ee762d363484ef8fe9a7322adf6c1ce6d93d4aa2/feast-dev/feast/issues/2607 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ceee31ca832b64f2731691c4ee762d363484ef8fe9a7322adf6c1ce6d93d4aa2/feast-dev/feast/issues/2607 |
| og:image:alt | I found that new api 'Field' will take place of 'Feature' in 0.21+ feast. but Field only have 'name' and 'dtype' parameters. The parameter 'labels' is disappeared. In my use case 'labels' is very i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hsz1273327 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2981c597c945c1d90ac6fa355ce7929b2f413dfe7872ca5c435ee53a24a1de50 |
| turbo-cache-control | no-preview |
| go-import | github.com/feast-dev/feast git https://github.com/feast-dev/feast.git |
| octolytics-dimension-user_id | 57027613 |
| octolytics-dimension-user_login | feast-dev |
| octolytics-dimension-repository_id | 161133770 |
| octolytics-dimension-repository_nwo | feast-dev/feast |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 161133770 |
| octolytics-dimension-repository_network_root_nwo | feast-dev/feast |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a49c4df0dedcf1a70c07cccb99337400ec284247 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width