본문 바로가기

TensorFlow(AI)53

HTML 5 <audio> tag * 태그: 역시 바로 예제를 보자. Your user agent does not support the HTML5 Audio element. : 비디오와 유사하다. 내부에 몇가지의 를 둬서 재생 가능한 쪽을 선택해서 재생하게 된다. Your user agent does not support the HTML5 Audio element. : 역시 외부의 UI를 통해서 제어를 할수 있는 것 또한 같다. Your user agent does not support the HTML5 Audio element. Play Play/Pause : 이렇게 video와 거의 비슷한 형태를 가지고 attribute들도 크기를 지정하는 것만 빼면 거의 같다. 이름값설명 src URL 비디오 소스의 URL controls "con.. 2019. 1. 13.
Convert a 1D array to a 2D array in numpy values = np.reshape(values, (-1, len(dataset[1:]))) B = np.reshape(A, (-1, 2))sourcehttps://stackoverflow.com/questions/12575421/convert-a-1d-array-to-a-2d-array-in-numpy 2018. 12. 24.
What values are returned from model.evaluate() in Keras? ReturnsScalar test loss (if the model has a single output and no metrics) or list of scalars (if the model has multiple outputs and/or metrics). The attribute model.metrics_names will give you the display labels for the scalar outputs.Therefore, you can use metric_names property of your model to find out what each of those values corresponds to. For example:from keras import layers from keras im.. 2018. 12. 19.
python get current datetime Get Formated Date Time in PythonAlso, if you need date and time in specific format, you can specify directive to format date and time. Create getDateTime3.py file with following content. This example have some sample formated date and time outputs.import datetime currentDT = datetime.datetime.now() print (currentDT.strftime("%Y-%m-%d %H:%M:%S")) print (currentDT.strftime("%Y/%m/%d")) print (curr.. 2018. 12. 15.