Skip to content

Commit

Permalink
Merge pull request #35 from NillionNetwork/feature/github-telemetry
Browse files Browse the repository at this point in the history
Use github username for telemetry
  • Loading branch information
mathias-nillion authored Aug 19, 2024
2 parents a89de2c + e218ae2 commit 5e26b9f
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 124 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,5 @@ bench/
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

data/
data/
.DS_Store
7 changes: 4 additions & 3 deletions examples/complex_model/complex_model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@
},
"outputs": [],
"source": [
"%pip install nada-ai --quiet"
"%%capture\n",
"!pip install nada-ai"
]
},
{
Expand All @@ -87,7 +88,7 @@
"source": [
"# Configure telemetry settings\n",
"enable_telemetry = True #@param {type:\"boolean\"}\n",
"my_identifier = \"your-telemetry-identifier\" #@param {type:\"string\"}"
"my_github_username = \"your-github-username\" #@param {type:\"string\"}"
]
},
{
Expand Down Expand Up @@ -152,7 +153,7 @@
"\n",
"# Set telemetry if opted in\n",
"if enable_telemetry:\n",
" identifier = f\"nada-ai-complex-model-{str(uuid.uuid4())}-{my_identifier}\"\n",
" identifier = f\"nada-ai-complex-model-{str(uuid.uuid4())}-{my_github_username}\"\n",
" !echo 'yes' | nilup instrumentation enable --wallet {identifier}\n",
"\n",
"# Install the lastest SDK and initialise it\n",
Expand Down
29 changes: 5 additions & 24 deletions examples/conv_net/conv_net.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -62,29 +62,10 @@
"id": "o4PXBlE2v_7K",
"outputId": "01e87267-59cf-49c4-b088-c94ed94b2185"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m61.0/61.0 kB\u001b[0m \u001b[31m795.7 kB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m54.8/54.8 kB\u001b[0m \u001b[31m3.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m18.2/18.2 MB\u001b[0m \u001b[31m47.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m12.6/12.6 MB\u001b[0m \u001b[31m53.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m13.4/13.4 MB\u001b[0m \u001b[31m42.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m413.1/413.1 kB\u001b[0m \u001b[31m19.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m294.6/294.6 kB\u001b[0m \u001b[31m18.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m2.1/2.1 MB\u001b[0m \u001b[31m55.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m149.3/149.3 kB\u001b[0m \u001b[31m11.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m21.3/21.3 MB\u001b[0m \u001b[31m53.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25h\u001b[31mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\n",
"tensorflow-metadata 1.15.0 requires protobuf<4.21,>=3.20.3; python_version < \"3.11\", but you have protobuf 4.25.4 which is incompatible.\u001b[0m\u001b[31m\n",
"\u001b[0m"
]
}
],
"outputs": [],
"source": [
"%pip install nada-ai --quiet"
"%%capture\n",
"pip install nada-ai"
]
},
{
Expand All @@ -111,7 +92,7 @@
"source": [
"# Configure telemetry settings\n",
"enable_telemetry = True #@param {type:\"boolean\"}\n",
"my_identifier = \"your-telemetry-identifier\" #@param {type:\"string\"}"
"my_github_username = \"your-github-username\" #@param {type:\"string\"}"
]
},
{
Expand Down Expand Up @@ -174,7 +155,7 @@
"\n",
"# Set telemetry if opted in\n",
"if enable_telemetry:\n",
" identifier = f\"nada-ai-conv-net-{str(uuid.uuid4())}-{my_identifier}\"\n",
" identifier = f\"nada-ai-conv-net-{str(uuid.uuid4())}-{my_github_username}\"\n",
" !echo 'yes' | nilup instrumentation enable --wallet {identifier}\n",
"\n",
"# Install the lastest SDK and initialise it\n",
Expand Down
29 changes: 5 additions & 24 deletions examples/linear_regression/linear_regression.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -62,29 +62,10 @@
"id": "o4PXBlE2v_7K",
"outputId": "943693f2-51f8-4685-ea29-07b89b7b876a"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m61.0/61.0 kB\u001b[0m \u001b[31m1.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m54.8/54.8 kB\u001b[0m \u001b[31m3.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m18.2/18.2 MB\u001b[0m \u001b[31m70.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m12.6/12.6 MB\u001b[0m \u001b[31m4.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m13.4/13.4 MB\u001b[0m \u001b[31m77.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m413.1/413.1 kB\u001b[0m \u001b[31m22.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m294.6/294.6 kB\u001b[0m \u001b[31m16.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m2.1/2.1 MB\u001b[0m \u001b[31m57.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m149.3/149.3 kB\u001b[0m \u001b[31m9.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m21.3/21.3 MB\u001b[0m \u001b[31m60.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25h\u001b[31mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\n",
"tensorflow-metadata 1.15.0 requires protobuf<4.21,>=3.20.3; python_version < \"3.11\", but you have protobuf 4.25.4 which is incompatible.\u001b[0m\u001b[31m\n",
"\u001b[0m"
]
}
],
"outputs": [],
"source": [
"%pip install nada-ai --quiet"
"%%capture\n",
"!pip install nada-ai"
]
},
{
Expand All @@ -111,7 +92,7 @@
"source": [
"# Configure telemetry settings\n",
"enable_telemetry = True #@param {type:\"boolean\"}\n",
"my_identifier = \"your-telemetry-identifier\" #@param {type:\"string\"}"
"my_github_username = \"your-github-username\" #@param {type:\"string\"}"
]
},
{
Expand Down Expand Up @@ -174,7 +155,7 @@
"\n",
"# Set telemetry if opted in\n",
"if enable_telemetry:\n",
" identifier = f\"nada-ai-linear-regression-{str(uuid.uuid4())}-{my_identifier}\"\n",
" identifier = f\"nada-ai-linear-regression-{str(uuid.uuid4())}-{my_github_username}\"\n",
" !echo 'yes' | nilup instrumentation enable --wallet {identifier}\n",
"\n",
"# Install the lastest SDK and initialise it\n",
Expand Down
29 changes: 5 additions & 24 deletions examples/neural_net/neural_net.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -62,29 +62,10 @@
"id": "o4PXBlE2v_7K",
"outputId": "4b268ef1-60d7-49df-b9c1-51c4038addd1"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m61.0/61.0 kB\u001b[0m \u001b[31m1.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m54.8/54.8 kB\u001b[0m \u001b[31m2.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m18.2/18.2 MB\u001b[0m \u001b[31m35.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m12.6/12.6 MB\u001b[0m \u001b[31m51.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m13.4/13.4 MB\u001b[0m \u001b[31m44.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m413.1/413.1 kB\u001b[0m \u001b[31m24.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m294.6/294.6 kB\u001b[0m \u001b[31m17.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m2.1/2.1 MB\u001b[0m \u001b[31m57.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m149.3/149.3 kB\u001b[0m \u001b[31m10.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m21.3/21.3 MB\u001b[0m \u001b[31m61.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25h\u001b[31mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\n",
"tensorflow-metadata 1.15.0 requires protobuf<4.21,>=3.20.3; python_version < \"3.11\", but you have protobuf 4.25.4 which is incompatible.\u001b[0m\u001b[31m\n",
"\u001b[0m"
]
}
],
"outputs": [],
"source": [
"%pip install nada-ai --quiet"
"%%capture\n",
"!pip install nada-ai"
]
},
{
Expand All @@ -111,7 +92,7 @@
"source": [
"# Configure telemetry settings\n",
"enable_telemetry = True #@param {type:\"boolean\"}\n",
"my_identifier = \"your-telemetry-identifier\" #@param {type:\"string\"}"
"my_github_username = \"your-github-username\" #@param {type:\"string\"}"
]
},
{
Expand Down Expand Up @@ -174,7 +155,7 @@
"\n",
"# Set telemetry if opted in\n",
"if enable_telemetry:\n",
" identifier = f\"nada-ai-neural-net-{str(uuid.uuid4())}-{my_identifier}\"\n",
" identifier = f\"nada-ai-neural-net-{str(uuid.uuid4())}-{my_github_username}\"\n",
" !echo 'yes' | nilup instrumentation enable --wallet {identifier}\n",
"\n",
"# Install the lastest SDK and initialise it\n",
Expand Down
29 changes: 5 additions & 24 deletions examples/spam_detection/spam_detection.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -62,29 +62,10 @@
"id": "o4PXBlE2v_7K",
"outputId": "3427388e-6089-4d0c-fe10-db3bde3ca5a7"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m61.0/61.0 kB\u001b[0m \u001b[31m998.5 kB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m54.8/54.8 kB\u001b[0m \u001b[31m2.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m18.2/18.2 MB\u001b[0m \u001b[31m30.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m12.6/12.6 MB\u001b[0m \u001b[31m11.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m13.4/13.4 MB\u001b[0m \u001b[31m26.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m413.1/413.1 kB\u001b[0m \u001b[31m25.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m294.6/294.6 kB\u001b[0m \u001b[31m19.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m2.1/2.1 MB\u001b[0m \u001b[31m71.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m149.3/149.3 kB\u001b[0m \u001b[31m10.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m21.3/21.3 MB\u001b[0m \u001b[31m70.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25h\u001b[31mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\n",
"tensorflow-metadata 1.15.0 requires protobuf<4.21,>=3.20.3; python_version < \"3.11\", but you have protobuf 4.25.4 which is incompatible.\u001b[0m\u001b[31m\n",
"\u001b[0m"
]
}
],
"outputs": [],
"source": [
"%pip install nada-ai --quiet"
"%%capture\n",
"!pip install nada-ai"
]
},
{
Expand All @@ -111,7 +92,7 @@
"source": [
"# Configure telemetry settings\n",
"enable_telemetry = True #@param {type:\"boolean\"}\n",
"my_identifier = \"your-telemetry-identifier\" #@param {type:\"string\"}"
"my_github_username = \"your-github-username\" #@param {type:\"string\"}"
]
},
{
Expand Down Expand Up @@ -174,7 +155,7 @@
"\n",
"# Set telemetry if opted in\n",
"if enable_telemetry:\n",
" identifier = f\"nada-ai-spam-detection-{str(uuid.uuid4())}-{my_identifier}\"\n",
" identifier = f\"nada-ai-spam-detection-{str(uuid.uuid4())}-{my_github_username}\"\n",
" !echo 'yes' | nilup instrumentation enable --wallet {identifier}\n",
"\n",
"# Install the lastest SDK and initialise it\n",
Expand Down
Loading

0 comments on commit 5e26b9f

Please sign in to comment.