Skip to content

Instantly share code, notes, and snippets.

Avatar

Kouji Nakashima kuc-arc-f

View GitHub Profile
@kuc-arc-f
kuc-arc-f / test.blade.php
Created May 1, 2020
firebase_Google_auth_sample_1
View test.blade.php
@extends('layouts.app')
@section('title', 'タスク一覧')
@section('content')
<script src="https://www.gstatic.com/firebasejs/7.14.2/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.14.2/firebase-auth.js"></script>
<div id="app">
<div class="panel panel-default">
@kuc-arc-f
kuc-arc-f / tfjs_start3-t1-save.html
Created Oct 10, 2019
tensorflow.js , 学習model 保存のサンプル
View tfjs_start3-t1-save.html
<!--
tensorflow.js のテスト ,回帰モデル
https://www.tensorflow.org/js/guide/layers_for_keras_users
2019/10/09: 学習model 保存のサンプル
--->
<!DOCTYPE html>
<html>
<head>
<title>TensorFlow.js Tutorial</title>
<!-- Import TensorFlow.js -->
@kuc-arc-f
kuc-arc-f / tf_test.html
Created Oct 3, 2019
tensorflow.js 回帰モデルのブラウザ版 テスト
View tf_test.html
<!DOCTYPE html>
<!--
tensorflow.js 回帰モデルのブラウザ版 テスト
--->
<html lang="ja">
<!-- 日本語 -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@1.0.0/dist/tf.min.js"></script>
@kuc-arc-f
kuc-arc-f / cha_iot_rand.py
Created Feb 19, 2018
chainer で数値予測するサンプル
View cha_iot_rand.py
# -*- coding: utf-8 -*-
import numpy as np
import chainer
from chainer import cuda, Function, gradient_check, Variable, optimizers, serializers, utils
from chainer import Link, Chain, ChainList
import chainer.functions as F
import chainer.links as L
import time
from matplotlib import pyplot as plt
View test_rnn2-blog.py
# encoding: utf-8
from keras.models import Sequential
from keras.layers.core import Dense, Activation
from keras.layers.recurrent import LSTM
from keras.optimizers import Adam
from keras.callbacks import EarlyStopping
import sys
import numpy as np
@kuc-arc-f
kuc-arc-f / yosoku_update_one.py
Created Jan 19, 2018
tensorflow , resultupdate
View yosoku_update_one.py
# -*- coding: utf-8 -*-
import requests
import json
import time
import sys
import gc
import traceback
import api_func
import com_func
View yosoku_update.service
[Unit]
Description = tesorFlow Learning server
[Service]
ExecStart=/usr/bin/python /usr/local/yosoku_update/yosoku_update.py
Restart=always
Type=simple
[Install]
WantedBy=multi-user.target
@kuc-arc-f
kuc-arc-f / ai_func.py
Created Jan 4, 2018
tensorFlow Lerning process
View ai_func.py
import tensorflow as tf
import json
from urllib2 import urlopen
import api_func
#ai_func
class ai_funcClass:
def __init__(self):
print ""
@kuc-arc-f
kuc-arc-f / yosoku_update.py
Created Jan 4, 2018
tensorFlow Learning results update process , via python2.7
View yosoku_update.py
#import tensorflow as tf
import json
from urllib2 import urlopen
import datetime
import threading
import time
import sys
import traceback
import api_func
@kuc-arc-f
kuc-arc-f / webhook.py
Last active Jan 3, 2018
GoogleHome (dialogFlow) webhook , tensorFlow reusult output
View webhook.py
# -*- coding: utf-8 -*-
# 日本語
from urllib2 import urlopen
import webapp2
import json
import os
import sys
import traceback
import com_func
You can’t perform that action at this time.