Last active
August 7, 2020 12:17
-
-
Save vishwanath79/30d39e4e9c32522b7acf2bf04e5ad3e5 to your computer and use it in GitHub Desktop.
Revisions
-
vishwanath79 revised this gist
Aug 7, 2020 . 1 changed file with 60 additions and 32736 deletions.There are no files selected for viewing
-
vishwanath79 revised this gist
Aug 7, 2020 . 1 changed file with 11 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -34624,10 +34624,19 @@ }, { "cell_type": "code", "execution_count": 74, "metadata": {}, "outputs": [], "source": [ "#Save schema\n", "import os\n", "from tensorflow.python.lib.io import file_io\n", "from google.protobuf import text_format\n", "OUTPUT_DIR = \"\"\n", "file_io.recursive_create_dir(OUTPUT_DIR)\n", "schema_file = os.path.join(OUTPUT_DIR, 'schema.pbtxt')\n", "tfdv.write_schema_text(schema, schema_file)" ] } ], "metadata": { -
vishwanath79 revised this gist
Aug 7, 2020 . 1 changed file with 89 additions and 32777 deletions.There are no files selected for viewing
-
vishwanath79 revised this gist
Aug 7, 2020 . 1 changed file with 28 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,6 +10,15 @@ "warnings.filterwarnings('ignore')" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "#Dataset location: https://www.kaggle.com/eswarchandt/amazon-music-reviews?select=Musical_instruments_reviews.csv" ] }, { "cell_type": "code", "execution_count": 56, @@ -67091,6 +67100,23 @@ "skew_anomalies" ] }, { "cell_type": "code", "execution_count": null, "outputs": [], "source": [ "#Drift comparator\n", "tfdv.get_feature(schema,'helpful').drift_comparator.infinity_norm.threshold = 0.01\n", "drift_anomalies = tfdv.validate_statistics(statistics=TRAIN,schema=schema,previous_statistics=TRAIN)\n", "drift_anomalies" ], "metadata": { "collapsed": false, "pycharm": { "name": "#%%\n" } } }, { "cell_type": "code", "execution_count": 72, @@ -67282,13 +67308,7 @@ "output_type": "execute_result" } ], "source": [] }, { "cell_type": "code", @@ -67319,4 +67339,4 @@ }, "nbformat": 4, "nbformat_minor": 1 } -
vishwanath79 revised this gist
Aug 6, 2020 . 1 changed file with 67322 additions and 1 deletion.There are no files selected for viewing
-
vishwanath79 renamed this gist
Aug 6, 2020 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
vishwanath79 created this gist
Aug 6, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ import tfdv