Skip to content

Instantly share code, notes, and snippets.

View brianray's full-sized avatar
🐍

Brian Ray brianray

🐍
  • Maven Wave Partners
  • Los Angeles | Chicago
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>What Does It Mean to Be AI Native?</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap" rel="stylesheet">
<style>
@brianray
brianray / launch.json
Last active December 27, 2023 22:21
debug GCP Cloud Functions locally with VSCode
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Cloud Function Emulate",
"type": "python",
"request": "launch",
"module": "functions_framework",
"justMyCode": false,
"args": [
graph LR
  A((Start))--take Survey-->B((Goal Setting))
  B((Goal Setting))--1 on 1 coach-->C((Working On Concentation))
  C((Working On Concentation))--1 on 1 coach weekly-->C((Working On Concentation))

Scenarios

  1. Jailbreaking for Data Leaked from Hacker Actor: the hacker gets data out of the model by pure prompt manipulation,
  2. Intrusion from Hacker Actor: The malicious instructions pass through the application and can instruct the extension services to do bad things.
  3. Data poisoning for Training data: The source data used to train the LLM has malicious content before it is trained.
  4. Prompt Poising: hidden content or injected content unintentional from an innocent bystander.
[name] By: [by]
Data Access ...
Runtime and Cost ...
Namespaces ...
Advanced Types ...
Scheduling ...
Streaming ...
Feature Transform ...
Time Sensitivity ...
Databricks Feature Store By: Databricks
Data Access ...
Runtime and Cost ...
Namespaces ...
Advanced Types ...
Scheduling ...
Streaming ...
Feature Transform ...
Time Sensitivity ...
prophet_model = Prophet(
growth='linear',
changepoints=None,
n_changepoints=25,
changepoint_range=0.8,
yearly_seasonality=10, # Fourier
weekly_seasonality=3, # Fourier
daily_seasonality='auto',
seasonality_mode='additive',
seasonality_prior_scale=10.0,
import scipy.signal as sg
def decimate_rolling(df, size=100):
out = []
for name in names[:n_samples]:
inds = np.arange(0, len(df), 8000) ## TODO
for i, j in zip(inds[:-1], inds[1:]):
dij = d[i:j]
dij = sg.decimate(dij, 2, ftype="iir")[::2]
out.append(dij)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
function sentiment_analysis(content) {
var URL = "https://us-central1-mw-automl-first-look.cloudfunctions.net/analyze"
var options = {
'method' : 'post',
'contentType': 'application/json',
// Convert the JavaScript object to a JSON string.
'payload' : JSON.stringify({"content": content})
};
return UrlFetchApp.fetch(URL, options).getContentText();
}