Skip to content

Instantly share code, notes, and snippets.

View kdbaseball8's full-sized avatar

Kevin D kdbaseball8

  • California
View GitHub Profile
@kdbaseball8
kdbaseball8 / flatten_all_spark_schema.py
Created February 27, 2021 17:05 — forked from AxREki/flatten_all_spark_schema.py
Flatten a Spark DataFrame schema (include struct and array type)
import typing as T
import cytoolz.curried as tz
import pyspark
from pyspark.sql.functions import explode
def schema_to_columns(schema: pyspark.sql.types.StructType) -> T.List[T.List[str]]:
@kdbaseball8
kdbaseball8 / ML0101EN-RecSys-Content-Based-movies-py-v1.ipynb
Created September 6, 2019 16:49
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kdbaseball8
kdbaseball8 / ML0101EN-Clus-DBSCN-weather-py-v1.ipynb
Created September 6, 2019 16:48
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kdbaseball8
kdbaseball8 / ML0101EN-Clus-K-Means-Customer-Seg-py-v1.ipynb
Created September 6, 2019 16:48
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kdbaseball8
kdbaseball8 / ML0101EN-Clus-Hierarchical-Cars-py-v1.ipynb
Created September 6, 2019 16:48
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kdbaseball8
kdbaseball8 / ML0101EN-Clas-SVM-cancer-py-v1.ipynb
Created September 6, 2019 16:48
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kdbaseball8
kdbaseball8 / ML0101EN-Clas-Decision-Trees-drug-py-v1.ipynb
Created September 6, 2019 16:48
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kdbaseball8
kdbaseball8 / ML0101EN-Clas-Decision-Trees-drug-py-v1.ipynb
Created September 6, 2019 16:48
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kdbaseball8
kdbaseball8 / ML0101EN-Clas-Logistic-Reg-churn-py-v1.ipynb
Created September 6, 2019 16:48
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.