- Delete all Evicted pods
kubectl get pods --show-all=true | grep 'Evicted' |awk '{print $1}' | xargs kubectl delete pod
kubectl get pods --show-all=true | grep 'Evicted' |awk '{print $1}' | xargs kubectl delete pod
self.init_plot(self.FEATURES) | |
has_converged = False | |
iter = 1 | |
while not has_converged: | |
print(f"iter {iter}") | |
minibatch = random.sample(range(0, self.DATAPOINTS), self.MINIBATCH_SIZE) | |
for k in range(self.FEATURES): |
pyenv install --patch 3.8.3 < <(curl -sSL https://github.com/python/cpython/commit/8ea6353.patch)
Isomap is a nonlinear dimensionality reduction method. | |
The algorithm provides a simple method for estimating the intrinsic geometry of a data manifold based on a rough estimate | |
of each data point’s neighbours |
import { Link } from 'react-router-dom' | |
import { Badge, Col, Menu } from 'antd' | |
const StyledBadge = styled(Badge)` | |
.ant-badge-count { | |
background-color: #7ECBBF; | |
color: white; | |
box-shadow: 0 0 0 1px #d9d9d9 inset; | |
} | |
` |
'use strict'; | |
const mongoose = require('mongoose'); | |
run().catch(err => console.log(err)); | |
async function run() { | |
mongoose.set('useUnifiedTopology', true); | |
mongoose.set('useNewUrlParser', true); |
/* | |
* This script will download a package (and all of its dependencies) from the | |
* online NPM registry, then create a gzip'd tarball containing that package | |
* and all of its dependencies. This archive can then be copied to a machine | |
* without internet access and installed using npm. | |
* | |
* The idea is pretty simple: | |
* - npm install [package] | |
* - rewrite [package]/package.json to copy dependencies to bundleDependencies | |
* - npm pack [package] |
First, you have to enable profiling
> db.setProfilingLevel(1)
Now let it run for a while. It collects the slow queries ( > 100ms) into a capped collections, so queries go in and if it's full, old queries go out, so don't be surprised that it's a moving target...