728x90
728x90
'이것저것 코드' 카테고리의 다른 글
[css] reset css (0) | 2022.10.13 |
---|---|
[electron] move css (0) | 2022.10.13 |
[시각화] 대한민국 지도 시각화를 위한 좌표 데이터 변환 방법 / topojson (0) | 2022.02.17 |
[css] reset css (0) | 2022.10.13 |
---|---|
[electron] move css (0) | 2022.10.13 |
[시각화] 대한민국 지도 시각화를 위한 좌표 데이터 변환 방법 / topojson (0) | 2022.02.17 |
출처 : https://meyerweb.com/eric/tools/css/reset/
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
[Jquery UI] Tooltips (0) | 2022.12.14 |
---|---|
[electron] move css (0) | 2022.10.13 |
[시각화] 대한민국 지도 시각화를 위한 좌표 데이터 변환 방법 / topojson (0) | 2022.02.17 |
-webkit-app-region: drag;
[Jquery UI] Tooltips (0) | 2022.12.14 |
---|---|
[css] reset css (0) | 2022.10.13 |
[시각화] 대한민국 지도 시각화를 위한 좌표 데이터 변환 방법 / topojson (0) | 2022.02.17 |
gradle
// https://mvnrepository.com/artifact/org.springframework/spring-tx
implementation group: 'org.springframework', name: 'spring-tx', version: '5.3.23'
./gradlew --refresh-dependencies
Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource
mybatis 추가후 bean dataSource설정이 없을경우
[Spring boot] mariadb + jpa 대문자로 만들기 (0) | 2024.05.17 |
---|---|
[spring boot] thymeleaf th:href / th:src (0) | 2022.12.26 |
[spring boot] thymeleaf layout (0) | 2022.12.26 |
@EnableTransactionManagement (0) | 2022.10.11 |
vscode refresh gradle (0) | 2022.10.11 |
마음 먹고 출근하는 날
[회고] 아주 바쁜 1주일이 끝난 후 보낸 긴장되는 한주 (0) | 2024.09.01 |
---|---|
[SQL] 쿼리 쿼리 쿼리 (0) | 2023.02.04 |
[VSCode] Terminal PS→cmd 변경 (0) | 2022.05.23 |
블로그 컨셉 잡기 (0) | 2022.04.25 |
[TIL] React-google-chart / d3.js ...etc (0) | 2022.02.21 |
mysql 설치
https://dev.mysql.com/downloads
MySQL :: MySQL Community Downloads
The world's most popular open source database Contact MySQL | Login | Register
dev.mysql.com
pom.xml dependency 추가
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.30</version>
<scope>test</scope>
</dependency>
[Spring] tiles 설정 (0) | 2024.06.11 |
---|---|
[Spring] Study #1 (0) | 2023.02.06 |
[Spring] The import org.junit cannot be resolved 에러 (0) | 2022.09.21 |
[SPRING] STS4 설치 및 세팅 (0) | 2022.09.06 |
[SPRING BOOT] 스프링 부트 자동 리로드 (0) | 2022.09.06 |
class F1Score(tf.keras.metrics.Metric):
def __init__(self, name='F1Score', **kwargs):
super(F1Score, self).__init__(name=name, **kwargs)
self.f1score = self.add_weight(name='F1Score', initializer='zeros')
self.count = self.add_weight(name='F1ScoreCount', initializer='zeros')
def update_state(self, y_true, y_pred, sample_weight=None):
y_true = tf.cast(y_true, tf.bool)
y_pred = tf.cast(y_pred, tf.bool)
true_positives = tf.logical_and(tf.equal(y_true, True), tf.equal(y_pred, True))
true_positives = tf.cast(true_positives, self.dtype)
count_true_positives = tf.reduce_sum(true_positives)
possible_positives = tf.cast(y_true, self.dtype)
count_possible_positives = tf.reduce_sum(possible_positives)
predicted_positives = tf.cast(y_pred, self.dtype)
count_predicted_positives = tf.reduce_sum(predicted_positives)
precision = count_true_positives / (count_predicted_positives + K.epsilon())
recall = count_true_positives / (count_possible_positives + K.epsilon())
f1_cal = 2*(precision*recall)/(precision + recall + K.epsilon())
self.count.assign_add(1)
a = 1.0 / self.count
b = 1.0 - a
self.f1score.assign(a*f1_cal+b*self.f1score)
def result(self):
return self.f1score
[Python] Ubuntu 20.04에 python 3.10 설치 (0) | 2024.03.11 |
---|---|
[python]무작위 페이크 이름 생성기 (0) | 2022.05.13 |
[#1] 파이썬에 대하여 개인적인 생각 (0) | 2021.12.24 |
[#0] 파이썬 (0) | 2021.12.06 |
1. project 우클릭 -> Build Path -> Configure Build Path
2. Add Library -> JUnit
3.Junit version 선택
[Spring] tiles 설정 (0) | 2024.06.11 |
---|---|
[Spring] Study #1 (0) | 2023.02.06 |
[Spring] spring mysql 연동 (0) | 2022.09.22 |
[SPRING] STS4 설치 및 세팅 (0) | 2022.09.06 |
[SPRING BOOT] 스프링 부트 자동 리로드 (0) | 2022.09.06 |