Skip to content

Instantly share code, notes, and snippets.

""""
SMAPE (Symmetric Mean Absolute Percentage Error) is a popular accuracy metric used in forecasting to measure the relative difference between the predicted and actual values. It is particularly useful when the values being forecasted have different scales or magnitudes.
The purpose of SMAPE is to provide a way to measure the accuracy of a forecasting model that takes into account both the magnitude and direction of the errors. Unlike other accuracy metrics such as MAE (Mean Absolute Error) and RMSE (Root Mean Squared Error), SMAPE is symmetric and gives equal weight to over- and under-estimations of the actual value.
SMAPE is calculated as the average absolute percentage difference between the actual and predicted values, expressed as a percentage of the sum of the actual and predicted values. The formula for SMAPE is:
SMAPE = (100 / n) * Σ(|F_t - A_t| / (|F_t| + |A_t|))
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
name: example-filter
spec:
configPatches:
- applyTo: HTTP_FILTER
match:
context: SIDECAR_INBOUND
listener:
apiVersion: v1
kind: Pod
metadata:
name: private-reg
spec:
apiVersion: v1
kind: Pod
metadata:
name: secret-test-pod
labels:
name: secret-test
spec:
volumes:
- name: secret-volume
secret:
spec:
containers:
- env:
- name: USERNAME
valueFrom:
secretKeyRef:
key: username
name: user-info
image: docker.io/kennethreitz/httpbin
imagePullPolicy: IfNotPresent
apiVersion: gateway.networking.k8s.io/v1beta1
kind: Gateway
metadata:
name: gateway
namespace: istio-ingress
spec:
gatewayClassName: istio
listeners:
- name: default
hostname: "*.example.com"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Endpoint Description
/debug/adsz Status and debug interface for ADS
/debug/adsz?push=true Initiates push of the current state to all connected endpoints
/debug/authorizationz Internal authorization policies
/debug/cachez Info about the internal XDS caches
/debug/cachez?clear=true Clear the XDS caches
/debug/cachez?sizes=true Info about the size of the internal XDS caches
/debug/clusterz List remote clusters where istiod reads endpoints
/debug/config_distribution Version status of all Envoys connected to this Pilot instance
/debug/config_dump ConfigDump in the form of the Envoy admin config dump API for passed in proxyID
Watch this awesome video
https://www.youtube.com/watch?v=Wcy-N37lH7s
--------------------------------------------------------------------------------------------------------------------
istioctl analyze --all-namespaces --> ensure the namespace configuration is ok
istioctl proxy-status ---> check to ensure what are the workload that is part of the service mesh