농장/인공지능 3

Tensorflow.js 선형회귀분석 모델 생성과 테스트하기

1. 모델 생성까지의 과정 let X = tf.input({ shape: [1] }); //독립변수 개수 let Y = tf.layers.dense({ units: 1 }).apply(X); //출력될 결과(종속)변수 개수 let model = tf.model({ inputs: X, outputs: Y }); //모델 정의 let compileParam = { optimizer: tf.train.adam()/*방식*/, loss: tf.losses.meanSquaredError/*손실함수*/ } model.compile(compileParam); //모델 컴파일링 let fitParam = { epochs: 2000, //학습횟수 callbacks:{ onEpochEnd: function(epoch, l..

농장/인공지능 2021.04.17

Apache아파치로 Tensorflow.js 사용을 위한 로컬 호스트 서버 만들기

윈도우10 & 크롬 기준, tensorflow.js 모델을 불러와 html파일을 탐색기 경로 실행시키면 에러가 난다. 그 이유는 서버에서만 동작하기 때문이라고 한다. 아파치로 빠르게 로컬 서버를 생성해보장. 아파치 톰캣 다운로드와 설치 Apache tomcat download & Install tomcat.apache.org/ Apache Tomcat® - Welcome! The Apache Tomcat® software is an open source implementation of the Java Servlet, JavaServer Pages, Java Expression Language and Java WebSocket technologies. The Java Servlet, JavaServer P..

농장/인공지능 2021.04.17

텐서플로우의 mobilenet 모델은 라쿤이란 단어를 모른다

랫서팬더와 라쿤은 다르다구요😂 사실 같다면 슬퍼.. Please add raccoon... 모델 소스 위치 github.com/tensorflow/tfjs-models/tree/master/mobilenet tensorflow/tfjs-models Pretrained models for TensorFlow.js. Contribute to tensorflow/tfjs-models development by creating an account on GitHub. github.com 모델 코드 계속해서 업데이트해 나갈 예정. with RACCOONS🤎 참고 opentutorials.org/course/4628/29770

농장/인공지능 2021.04.17