In the name of God
This gist contains steps to setup Ubuntu 22.04
for deep learning.
package tfexample.myapp.com.myapplication | |
import android.os.Bundle | |
import android.support.v7.app.AppCompatActivity | |
import android.util.Log | |
import org.tensorflow.contrib.android.TensorFlowInferenceInterface | |
import kotlin.system.measureTimeMillis | |
val modelName = "file:///android_asset/mobile_unet_160_100_100.pb" |
function coco(n, k, note, dotrainval, testyear) | |
% Train and evaluate a model. | |
% pascal(n, note, dotrainval, testyear) | |
% | |
% The model will be a mixture of n star models, each of which | |
% has 2 latent orientations. | |
% | |
% Arguments | |
% n Number of aspect ratio clusters to use | |
% (The final model has 2*n components) |
# List unique values in a DataFrame column | |
# h/t @makmanalp for the updated syntax! | |
df['Column Name'].unique() | |
# Convert Series datatype to numeric (will error if column has non-numeric values) | |
# h/t @makmanalp | |
pd.to_numeric(df['Column Name']) | |
# Convert Series datatype to numeric, changing non-numeric values to NaN | |
# h/t @makmanalp for the updated syntax! |
First install pip for Python2. Download the get-pip.py file from https://bootstrap.pypa.io/get-pip.py | |
$ cd <download location> | |
$ sudo -H python ./get-pip.py | |
Installing pip also installs Python3 | |
To run Python3 | |
$ python3 | |
Install pip3 by just executing the same file as in the step above, but this time using Python3 | |
$ sudo -H python3 ./get-pip.py |