Skip to content

Instantly share code, notes, and snippets.

View shuklak13's full-sized avatar

Karan Shukla shuklak13

View GitHub Profile
absl-py==0.8.1
alabaster==0.7.12
albumentations==0.1.12
altair==4.1.0
apache-beam==2.26.0
argon2-cffi==20.1.0
asgiref==3.3.1
astor==0.8.1
astropy==4.1
astunparse==1.6.3
@shuklak13
shuklak13 / gist:5c1c7b40714e782ff46ff250261dd55c
Last active December 22, 2020 22:11
!pipdeptree (12/16/20)
Warning!!! Possibly conflicting dependencies found:
* tensorflow-transform==0.22.0
- tensorflow [required: >=1.15,<2.3,!=2.0.*, installed: 2.3.0]
* tensorflow-serving-api==2.4.0
- tensorflow [required: >=2.4.0,<3, installed: 2.3.0]
* tensorflow-data-validation==0.22.2
- joblib [required: >=0.12,<0.15, installed: 0.17.0]
* nbclient==0.5.1
- jupyter-client [required: >=6.1.5, installed: 5.3.5]
* multiprocess==0.70.11.1
@shuklak13
shuklak13 / gist:029480f95f3eaac3003d728299d4d9da
Created December 16, 2020 18:41
`AttributeError: 'NoneType' object has no attribute 'iter_requirement'`
**What did you want to do?**
I attempted to run `pip install -q -U seaborn scikit-learn model-card-toolkit` on pip version 20.3.1.
**Output**
```
ERROR: Exception:
Traceback (most recent call last):
File "/tmpfs/src/tf_docs_env/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 224, in _main
@shuklak13
shuklak13 / gist:fbd0f5038f79a89eea5805890b51c585
Created December 22, 2020 23:20
pipdeptree on model_card_toolkit0.1.2.dev3 in fresh environment
Warning!!! Possibly conflicting dependencies found:
* tensorflow==2.4.0
- grpcio [required: ~=1.32.0, installed: 1.34.0]
- absl-py [required: ~=0.10, installed: 0.8.1]
* tensorflow-transform==0.22.0
- tensorflow [required: >=1.15,<2.3,!=2.0.*, installed: 2.4.0]
* tensorboard==2.4.0
- setuptools [required: >=41.0.0, installed: 39.2.0]
* google-auth==1.24.0
- setuptools [required: >=40.3.0, installed: 39.2.0]
@shuklak13
shuklak13 / pip freeze
Created December 23, 2020 19:22
pip freeze + pipdeptree
absl-py==0.10.0
alabaster==0.7.12
albumentations==0.1.12
altair==4.1.0
argon2-cffi==20.1.0
asgiref==3.3.1
astor==0.8.1
astropy==4.1
astunparse==1.6.3
async-generator==1.10
@shuklak13
shuklak13 / model_card_component.py
Created October 7, 2021 16:09
model_card_component.py
class ModelCardArtifact(Artifact):
TYPE_NAME = 'ModelCard'
class ModelCardComponentSpec(component_spec.ComponentSpec):
PARAMETERS = {
'model_card_proto':
component_spec.ExecutionParameter(type=Message),
'model_card_schema': component_spec.ExecutionParameter(type=GeneratedProtocolMessageType),
'model_card_template':
@shuklak13
shuklak13 / gist:0150db1afcbd11e531e3f365b4e3a662
Created December 30, 2021 00:05
model_card_toolkit.egg-info/PKG-INFO
Metadata-Version: 2.1
Name: model-card-toolkit
Version: 1.1.1.dev0
Summary: Model Card Toolkit
Home-page: https://github.com/tensorflow/model-card-toolkit
Author: Google LLC
Author-email: tensorflow-extended-dev@googlegroups.com
License: Apache 2.0
Keywords: model card toolkit ml metadata machine learning
Platform: UNKNOWN
@shuklak13
shuklak13 / component.py
Last active January 20, 2022 17:21
Model Card TFX Component
"""Model Card TFX Component.
The ModelCardGenerator is used to generate model cards in TFX pipelines.
"""
from typing import Any, List, Tuple, Optional
from model_card_toolkit.tfx import artifact
from model_card_toolkit.tfx import executor